// Start is called before the first frame update void Start() { nav = this.GetComponent <SteeringFollowNavMeshPath>(); Game_Manager = GameObject.Find("Game_Manager").GetComponent <Game_Manager>(); Check_Cells(); audio_sim = this.GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { nav = this.GetComponent <SteeringFollowNavMeshPath>(); Game_Manager = GameObject.Find("Game_Manager").GetComponent <Game_Manager>(); wait_position = target.transform.position; secretary_position = target2.transform.position; audio_sim = this.GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { move = GetComponent <Move>(); nav = GetComponent <SteeringFollowNavMeshPath>(); pathnav = GetComponent <SteeringFollowPath>(); if (nav.enabled && target2 != false && this.gameObject.name != "SimpleCitizens_Grandma_White") { nav.enabled = false; } if (!nav.enabled && target2 != false) { nav.enabled = true; } }
// Start is called before the first frame update void Start() { nav = this.GetComponent <SteeringFollowNavMeshPath>(); }
// Start is called before the first frame update void Start() { nav = this.GetComponent <SteeringFollowNavMeshPath>(); Game_Manager = GameObject.Find("Game_Manager").GetComponent <Game_Manager>(); work_position = work_target.transform.position; }