public static T GetInstance <T>() where T : MonoBehaviour { if (me == null) { Debug.LogWarningFormat("'{0}' instance is null.", typeof(T).FullName); } return((T)me); }