public Texture2D GetEmptyImage()
{
if(this.emptyTexture == null && this.useImage)
{
this.emptyTexture = (Texture2D)Resources.Load(DataHolder.HUDs().resourcePath+this.emptyImageName, typeof(Texture2D));
}
else if(this.emptyTexture == null)
{
this.emptyTexture = new Texture2D(1, 1);
this.emptyTexture.SetPixel(0, 0, DataHolder.Color(this.emptyColor));
this.emptyTexture.Apply();
}
return this.emptyTexture;
}