Esempio n. 1
0
 // Start is called before the first frame update
 public void Start()
 {
     agent      = GetComponent <NavMeshAgent>();
     animator   = GetComponent <Animator>();
     blackboard = GetComponent <Blackboard>();
     state      = GetComponent <StateBehaviour>();
     global     = GameObject.Find("GlobalBlackboard").GetComponent <GlobalBlackboard>();
     player     = global.GetGameObjectVar("Player");
     vision     = transform.GetComponentInChildren <Vision>();
     //InvokeRepeating("Sniff",1f,1f);
     maxAwakeTime = awakeTime;
 }