public void RequestShoot() { //Prepare the function SyncMobile.SyncProjectile = new SyncProjectile(); SyncMobile.SyncProjectile.ShotStrenght = LevelScene.HUD.StrenghtBar.Intensity; SyncMobile.SyncProjectile.ShotType = SelectedShotType; SyncMobile.SyncProjectile.ShotAngle = Crosshair.GetProjectileTrajetoryAngle(); SyncMobile.SyncProjectile.CannonPosition = Crosshair.CannonPosition.ToArray <float>(); SyncMobile.RemoveSynchronizableAction(SynchronizableAction.ChargingShot); SyncPosition = Position; UpdateSyncMobileToServer(); #if !DEBUGSCENE ServerInformationHandler.RequestShot(SyncMobile); #else ConsumeShootAction(SyncMobile); #endif LoseTurn(); }