Ejemplo n.º 1
0
 public void Fire(int cannon, int shooter, Vector3 origin, Vector3 direction)
 {
     if (!(null == cannonController) && cannonController.BrickSeq == cannon && cannonController.Shooter == shooter)
     {
         fireCount++;
         cannonController.DoFireAnimation();
         DoFireSound();
         DoMuzzleFire();
         Shoot(origin, direction);
     }
 }