Beispiel #1
0
 private void IdleActionHandler(CharacterBase unit, IdleAction action)
 {
     unit.Ready(action);
 }
Beispiel #2
0
        public bool ProcessIdle(CharacterBase unit, int idleTicks)
        {
            if (_unitActionDict.ContainsKey(unit)) return false;

            IdleAction idleAction = new IdleAction
            {
                Tick = _timeKeeper.Tick + idleTicks
            };

            AddAction(unit, idleAction);

            return true;
        }