Exemplo n.º 1
0
 /// <summary>
 /// Called when a combatant has selected an action to run.
 /// For now, we assume we only allow one action at a time to run.
 /// </summary>
 /// <param name="ndx"></param>
 public void StartAction(BS_Action action, MT_Combatant comb)
 {
     if (IsRunningAction)
     {
         return;
     }
     _currentAction   = action;
     _currentActionIt = action.Execute(comb);
 }
Exemplo n.º 2
0
        public void Set(MT_Combatant who, BS_Action act, int ndx)
        {
            _who    = who;
            _action = act;
            _ndx    = ndx;

            _number.text = (_ndx + 1).ToString();


            if (_image != null)
            {
                _image.sprite = act.Icon;
            }
            // ### TODO : add icons!
        }