public BattleActionScript(AICharacter aiChar, BattleActionScriptContainer scriptContainer, BattleActionScriptData actionScriptData)
        {
            _scriptContainer  = scriptContainer;
            _actionScriptData = actionScriptData;

            _speed = actionScriptData.speed;
            _listOfBattleActions = new List <BattleAction>();
            for (int i = 0; i < actionScriptData.listOfActionData.Count; ++i)
            {
                BattleAction battleAction = BattleActionTypes.GetBattleAction(aiChar, this, actionScriptData.listOfActionData[i]);
                _listOfBattleActions.Add(battleAction);
            }
        }
Beispiel #2
0
        public void Init(AICharacter aiCharacter)
        {
            BattleActionScriptContainerData scriptContainerData = new BattleActionScriptContainerData(scriptContainerPath);

            _scriptContainer = new BattleActionScriptContainer(aiCharacter, scriptContainerData);
        }