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