Example #1
0
 public void FastKill()
 {
     if (_isActive)
     {
         _isActive = false;
         _roundData.Remove(this.gameObject);
         ObjectPool.instance.PoolObject(this.gameObject);
     }
 }
Example #2
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Bullet")
        {
            //Get damage
            _roundData.Remove(this.gameObject);
            _player.SetActive(false);
        }

        if (other.tag == "PickUp")
        {
            //Pickup effect
        }
    }