Exemple #1
0
 public static CommandData GetCommandData(BattleActor battleActor, string commandName)
 {
     if (commandNameList == null)
     {
         InitializeCommandList();
     }
     return(commandDataList[commandNameList.IndexOf(commandName)]);
 }
        public ActionContest(BattleActor initiator, BattleActor target, ICommandAction commandAction)
        {
            this.initiator = initiator;
            this.target    = target;
            action         = commandAction;

            attackResult = PerformContestCalculation();
            target.TrySetAnimationState(ActorStateMachine.Actions.ActionAnimationState.Guard);
        }
 void Start()
 {
     owner = GetComponentInParent <BattleActor>();
 }