Example #1
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(gameObject);
         return;
     }
     else
     {
         instance = this;
     }
 }
Example #2
0
 //
 private void Awake()
 {
     //
     s_Instance = this;
 }