private void OnTriggerEnter(Collider other) { if (GameTag.IsPlayer(other.gameObject)) { gameManager.Victory(); } }
private void OnTriggerExit(Collider other) { if (GameTag.IsPlayer(other.gameObject) && !IsPlayerSpawn) { canCooldown = true; } }
private void OnTriggerEnter(Collider other) { if (GameTag.IsPlayer(other.gameObject)) { other.gameObject.GetComponent <PlayerManager>().PickUp(PickUpType); Destroy(gameObject); } }