protected GameObject GetError(XsollaError error) { bool isError = error != null; if (isError) { GameObject errorObj = Instantiate (Resources.Load("Prefabs/SimpleView/Error")) as GameObject; SetText (errorObj, error.GetMessage()); return errorObj; } return null; }
protected GameObject GetError(XsollaError error) { bool isError = error != null; if (isError) { GameObject errorObj = GetObject(PrefabError); SetText(errorObj, error.GetMessage()); return(errorObj); } return(null); }