Exemple #1
0
    // Use this for initialization
    void Start()
    {
        aiUnit_  = this.GetComponent <AIUnit>();
        aiSight_ = aiSight_.GetComponent <AISight>();

        subState = SubState.Empty;
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        aiUnit_  = this.GetComponent <AIUnit>();
        aiSight_ = aiSight_.GetComponent <AISight>();

        retreating_ = false;

        //Get Path to Flag
        aiUnit_.getNewPath(aiUnit_.startNode, aiUnit_.targetNode);

        subState = SubState.Capturing;
    }