Exemple #1
0
    IEnumerator Gunshot()
    {
        //activate muzzle flash and gunshot sound
        _motor.Shoot(_playerShot);
        //timer to wait and then return player weapon to original state
        yield return(new WaitForSeconds(1));

        _motor.Shoot(false);
    }