예제 #1
0
 void Awake()
 {
     if (s_instance)
         DestroyImmediate(gameObject);
     else
         s_instance = this;
 }
예제 #2
0
 void Awake()
 {
     if (s_instance)
     {
         DestroyImmediate(gameObject);
     }
     else
     {
         s_instance = this;
     }
 }