Exemple #1
0
 void Start()
 {
     agent        = GetComponent <NavMeshAgent>();
     defaultInput = GetComponent <IAgentInput>();
     if (startWithDefault)
     {
         input = defaultInput;
     }
 }
    void Start()
    {
        mainCamera  = Camera.main;
        input       = GetComponent <IAgentInput>();
        mindControl = GetComponent <MindControlEffect>();

        currentAgent       = startAgent;
        currentAgent.input = input;
        //currentAgent.defaultInput = input;
    }