private static void AlertEx(string message) { GameObject go = ObjectPool.Spawn("base/alerttext.u3d", "alerttext"); Text tfText = go.GetComponentInChildren <Text>(); if (tfText != null) { tfText.text = message; } UIManager.Instance.AddAlert(go); mCurrentAlert = go.AddMissingComponent <UIAlertView>(); mCurrentAlert.PlayAnim(RemoveAlert); }