Beispiel #1
0
 protected virtual void UpdateOrder(TurnEnds gameEvent)
 {
     if (gameEvent.monsterDied)
     {
         EventMgr.Instance.Raise(new NewTurn(this));
         return;
     }
     if (!charge && !wait)
     {
         orderIndex--;
         if (orderIndex < 0)
         {
             orderIndex = BattleMgr.Instance.actorList.Count - 1;
         }
         tracker.MoveTo(this, orderIndex);
     }
     else
     {
         chargeReady = true;
     }
     EventMgr.Instance.Raise(new NewTurn(this));
     charge = false;
     wait   = false;
 }
Beispiel #2
0
//        public static new EventListner Instance = new EventListner();

        public void SubscribeTurnEnd(TurnEnds turnEnds)
        {
            EventMgr.Instance.TurnEnd += turnEnds;
            Debug.LogWarning("[I] This method is deprecated, use AddListener function instead");
        }