void Start() { thisRend = GetComponent <MeshRenderer>(); player = GameObject.Find("Player"); playerscript = player.GetComponent <PlayerVisible>(); //thisRend.material.color = new Color(thisRend.material.color.r, thisRend.material.color.g, thisRend.material.color.b, 0.2f); }
void Start() { player = GameObject.Find("Player"); playerscript = player.GetComponent <PlayerVisible>(); target = GameObject.FindGameObjectWithTag("Player").transform; agent = GetComponent <NavMeshAgent>(); timer = wanderTimer; //isWandering = true; }
void Awake() { me = this; pcc = this.GetComponent <PersonClothesController> (); }