예제 #1
0
 private void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
예제 #2
0
 // Unity Methods
 private void Awake()
 {
     instance = this;
 }