|
|
@ -15,19 +15,16 @@ namespace SemiColinGames { |
|
|
|
} |
|
|
|
|
|
|
|
private readonly string contentPath; |
|
|
|
private Texture2D texture; |
|
|
|
|
|
|
|
public TextureRef(string contentPath) { |
|
|
|
allTextures.Add(this); |
|
|
|
this.contentPath = contentPath; |
|
|
|
} |
|
|
|
|
|
|
|
public Texture2D Get { |
|
|
|
get { return texture; } |
|
|
|
} |
|
|
|
public Texture2D Get { get; private set; } |
|
|
|
|
|
|
|
private void Load(ContentManager content) { |
|
|
|
texture = content.Load<Texture2D>(contentPath); |
|
|
|
Get = content.Load<Texture2D>(contentPath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|