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