示例#1
0
 void Awake()
 {
     netMan = GetComponent <NetManScript>();
     if (netMan.matchMaker == null)
     {
         netMan.StartMatchMaker();
     }
 }
示例#2
0
 void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     _instance = this;
 }