private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Target") { bStats = other.gameObject.GetComponent <BotStats>(); bStats.GiveTeamPlayerBuff(); } }