// PRIVATE
		/// <summary>
		/// Do send move.
		/// </summary>
		/// <param name="aTurretMoveVO">A turret move V.</param>
		private void _doSendMove (TurretMoveVO aTurretMoveVO) 
		{

			if (iGameModel.gameState == GameState.ROUND_DURING_CORE_GAMEPLAY) {
				turretDoMoveSignal.Dispatch (aTurretMoveVO);
			}
		
		}
Пример #2
0
		/// <summary>
		/// When the turret do move signal.
		/// </summary>
		/// <param name="aTurretMoveVO">A turret move V.</param>
		private void _onTurretDoMoveSignal (TurretMoveVO aTurretMoveVO) 
		{
			switch (aTurretMoveVO.moveType) {
			case MoveType.LeftOneTick:
				view.firingAngle -= aTurretMoveVO.amount;
				break;
			case MoveType.RightOneTick:
				view.firingAngle += aTurretMoveVO.amount;
				break;
			case MoveType.FiringStart:
				view.doSetIsFiring (true);
				soundPlaySignal.Dispatch (new SoundPlayVO (SoundType.TURRET_FIRE));
				break;
			case MoveType.FiringStop:
				view.doSetIsFiring (false);
				break;
			default:
				#pragma warning disable 0162
				throw new SwitchStatementException();
				break;
				#pragma warning restore 0162
			}
		}