예제 #1
0
 public void Awake()
 {
     if (Instance != null) {
         Destroy(this);
         return;
     }
     Instance = this;
     gameObject.SetActive(false);
 }
예제 #2
0
 void OnDestroy()
 {
     Instance = null;
 }