Glock.Shoot C# (CSharp) Method

Shoot() public method

public Shoot ( ) : void
return void
    void Shoot()
    {
        timer = 0f;
        //gunLine.SetPosition (1, shot.point);
        //

        if(Physics.Raycast(shotCheck, out shot, range, shootableMask)){
            EnemyHealth enemyHealth = shot.collider.GetComponent<EnemyHealth> ();
            if(enemyHealth != null){
                enemyHealth.TakeDMG(dmg, shot.point);
            }
        }
    }