public void FastKill() { if (_isActive) { _isActive = false; _roundData.Remove(this.gameObject); ObjectPool.instance.PoolObject(this.gameObject); } }
void OnTriggerEnter(Collider other) { if (other.tag == "Bullet") { //Get damage _roundData.Remove(this.gameObject); _player.SetActive(false); } if (other.tag == "PickUp") { //Pickup effect } }