コード例 #1
0
 public static void DestroyInstance()
 {
     if (!UnityUtility.IsNull(instance))
     {
         UnityUtility.SafeDelete(instance.gameObject);
     }
 }
コード例 #2
0
 private void CheckInstance()
 {
     if (instance != this)
     {
         if (Application.isPlaying)
         {
             UnityUtility.SafeDelete(gameObject);
         }
     }
 }