Exemplo n.º 1
0
        protected override void ConfigureStates()
        {
            Debug.Log("Configure PATROL");
            states = new IEnumerator[6];

            states[0] = AIStates.CalculatePatrolPath(blackboardReference, manager.components, 80);
            states[1] = AIStates.GotoPosition(blackboardReference, 0, 3, manager.components, 3, 3, true);
            states[2] = AIStates.GotoPosition(blackboardReference, 1, 3, manager.components, 3, 3, true);
            states[3] = AIStates.GotoPosition(blackboardReference, 2, 3, manager.components, 3, 3, true);
            states[4] = AIStates.GotoPosition(blackboardReference, 3, 3, manager.components, 3, 3, true);

            states[5] = AIStates.StandAndShootPlayer(blackboardReference, manager.components);
        }