コード例 #1
0
 void Awake()
 {
     if (!Util.Settings.enabled)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         _instance = this;
     }
 }
コード例 #2
0
 void OnDestroy()
 {
     _instance = null;
 }