isShooting() public method

public isShooting ( bool x ) : void
x bool
return void
Example #1
0
 override protected void Attack()     //overrides attack function of enemy.cs
 {
     base.Attack();
     if (gun != null)         //shoot the correct gun type
     {
         gun.isShooting(true, direction);
     }
     else if (shotgun != null)
     {
         shotgun.isShooting(true, direction);
     }
 }