Example #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.transform.root.gameObject.tag != "Player")
        {
            return;
        }

        Shooter weapon = other.transform.root.GetComponent <PlayerController>().weapon;

        weapon.ChangeDamage(1);
        End();
    }
 public void SetCanShoot(bool value)
 {
     canShoot = value;
     weapon.ChangeDamage(0);
 }