Пример #1
0
    // Use this for initialization
    void Start()
    {
        controller = GetComponent <Controller_AI>();

        thisState       = states.Patrol;
        lastHealthTotal = controller.data.healthCurrent;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     controller = GetComponent <Controller_AI>();
     // Set mesh color to blue
     currentState    = states.patrol;
     healthLastKnown = controller.data.healthCurrent;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     controller = GetComponent <Controller_AI>();
     // Set mesh color to blue
     currentState = states.patrol;
 }
Пример #4
0
 // Use this for initialization
 //When the game starts it gets the AI controller,sets the current state to patrol and gets the last known health.
 void Start()
 {
     controller      = GetComponent <Controller_AI>();
     currentState    = states.patrol;
     healthLastKnown = controller.data.healthCurrent;
 }
Пример #5
0
    // Use this for initialization
    void Start()
    {
        controller = GetComponent <Controller_AI>();

        currentState = states.patrol;
    }
Пример #6
0
    // Use this for initialization
    void Start()
    {
        controller = GetComponent <Controller_AI>();

        thisState = states.Patrol;
    }