Ejemplo n.º 1
0
 void Awake()
 {
     if (Connection.GetInstance().isHost)
     {
         objsCfgDic = new Dictionary <int, AppearObjectData>();
         EventsMgr.AddEvent(EventName.START_GAME, OnGameStart);
         if (levelData.appearSets != null && levelData.appearSets.Length > 0)
         {
             appearTag = new bool[levelData.appearSets.Length];
         }
         if (levelData.activeSets != null && levelData.activeSets.Length > 0)
         {
             activeTag = new bool[levelData.activeSets.Length];
         }
     }
 }
Ejemplo n.º 2
0
 private void Start()
 {
     EventsMgr.AddEvent(EventName.START_GAME, OnGameStart);
 }
Ejemplo n.º 3
0
 protected override void OnStart()
 {
     //doPath = gameObject.GetComponent<DOTweenPath>();
     //doPath.DOPause();
     EventsMgr.AddEvent(EventName.START_GAME, OnGameStart);
 }