예제 #1
0
 private void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }
예제 #2
0
 private void Awake()
 {
     _instance = this;
     count     = 0;
 }