private void SetErrorState()
{
if (!showErrorSign || !Application.isPlaying)
return;
if (_errorSign == null)
{
if (UIConfig.loaderErrorSign != null)
{
if (errorSignPool == null)
errorSignPool = new GObjectPool(Stage.inst.CreatePoolManager("LoaderErrorSignPool"));
_errorSign = errorSignPool.GetObject(UIConfig.loaderErrorSign);
}
else
return;
}
if (_errorSign != null)
{
_errorSign.width = this.width;
_errorSign.height = this.height;
_errorSign.grayed = grayed;
((Container)displayObject).AddChild(_errorSign.displayObject);
}
}