/* 船隻的加減速 # 使用上下控制,檢查加減速按鈕 CheckSpeed() # 函式 ConfirmTutorialSpeed() 中,呼叫教學事件 TutorialEvent 來關閉加減速教學 # 取得 船隻資訊 脈衝速度比例 的標準資料 # 依照FPS計算 目前的脈衝速度比例 */ public void CheckSpeed( UnitData _UnitData , float _UpDown ) { if( m_LastUpDown != _UpDown ) SystemLogManager.AddLog( SystemLogManager.SysLogType.Control , "UpDown:" + _UpDown.ToString() ) ; // check ever press up and down for tutorial event if( 0.0f != _UpDown ) { this.ConfirmTutorialSpeed() ; } _UnitData.AdjustImpulseEngineRatio( _UpDown * Time.deltaTime ) ; m_LastUpDown = _UpDown ; }