void OnTriggerEnter(Collider info) { if (info.name == "Player") { preyScript = this.GetComponent <Prey> (); preyScript.setScared(true); } }