//TODO - might be nicer to put this into the shoot state, along with a reference to the gun.
 //Though then do we keep the target in there too? Maybe that gets messier
 public void fireAtTarget()
 {
     if (Target != null)
     {
         turretGun.fire(getAngleToEnemy());
     }
 }
Example #2
0
 public void fireSecondary(float aimAngle)
 {
     secondProjectileLauncher.fire(aimAngle);
 }
Example #3
0
 public void firePrimary(float aimAngle)
 {
     projectileLauncher.fire(aimAngle);
 }