// Use this for initialization
 void Awake()
 {
     //控制中心唯一判定
     if (GCC == null) {
         DontDestroyOnLoad (gameObject);
         GCC = this;
     }
     else if (GCC != this) {
         Destroy(gameObject);
     }
 }
Beispiel #2
0
 public Broadcaster(GameControlCenter gameControlCenter)
 {
     this.gameControlCenter = gameControlCenter;
 }
Beispiel #3
0
 public HandleData(GameControlCenter gameControlCenter)
 {
     this.gameControlCenter = gameControlCenter;
 }