Esempio n. 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("存在Client实例,删除多余单例");
         Destroy(this);
     }
 }
Esempio n. 2
0
 private void Awake()
 {
     is_starting = false;
     instance    = this;
 }