Ejemplo n.º 1
0
        public override IAIState GetNextState(IAIState currentState)
        {
            WaspAIState beeState = (WaspAIState)currentState;

            switch (beeState.action)
            {
            case WaspAIAction.Move:
                beeState.action = WaspAIAction.Attack;
                break;

            case WaspAIAction.None:
            case WaspAIAction.Attack:
                beeState.action = WaspAIAction.Move;
                break;
            }
            return(beeState);
        }
Ejemplo n.º 2
0
        /******* Monobehavior Methods *******/

        public void Awake()
        {
            _wasp    = GetComponent <Wasp>();
            _aiState = new WaspAIState();
            StartAI();
        }