상속: MonoBehaviour
예제 #1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
예제 #2
0
 private void Awake()
 {
     if (!Instance)
     {
         Instance = this;
     }
 }