コード例 #1
0
        public override InputAction[] GetInputOptions(AdventurerAgent agent)
        {
            var outputs = new List <InputAction>();

            switch (GetAdventureStates(agent))
            {
            case AdventureStates.OutOfBattle:
                outputs.AddRange(EconomySystemUtils.GetStateInput <BattleEnvironments>());
                break;

            case AdventureStates.InBattle:
                outputs.AddRange(EconomySystemUtils.GetStateInput <BattleAction>());
                break;
            }
            outputs.AddRange(EconomySystemUtils.GetStateInput <AgentAdventureInput>());
            return(outputs.ToArray());
        }
コード例 #2
0
        public override InputAction[] GetInputOptions(AdventurerAgent agent)
        {
            var agentScreen = EconomySystemUtils.GetStateInput <EAdventurerScreen>();

            return(agentScreen.ToArray());
        }