Esempio n. 1
0
        public void ScheduleAction(SpectatorAction action, List <Asteroid> targets, bool exact, bool send = true)
        {
            ActionObjects a = new ActionObjects(action, targets, exact);

            actions.Enqueue(a);

            if (send)
            {
                SendActionScheduleMessage(action, targets, exact);
            }
        }
Esempio n. 2
0
 private void LoadAnotherAction()
 {
     if (actions.Count > 0)
     {
         action = actions.Dequeue();
         if (action.action.CastingTime == 0)
         {
             CastAction();
         }
         else
         {
             action.targets.ForEach(ast => StartAnimation(ast, action.action.CastingTime, action.action.CastingColor, action.action.TowardsMe));
         }
     }
     else
     {
         action = null;
     }
 }