public bool GenerateFireCommand(bool startShoot, out Command com) { if (startShoot) { com = _GenerateFireCommand(true); com.Add <DefaultData> (new DefaultData(DataType.UInt, CurrentShotID)); LSProjectile projectile = ProjectileManager.NDCreateAndFire( this.ProjCode, ProjectileStartPosition, Turner.GenerateForwards(Turner.CameraController.transform.rotation)); LatencyProjectiles.Add(CurrentShotID, projectile); CurrentShotID++; return(true); } else { if (ShootType == ShootType.Chain) { com = _GenerateFireCommand(false); return(true); } } com = null; return(false); }