public void MoveEnd() { m_state = State.Idle; m_move = false; SceneModule _sceneModule = (SceneModule)GameManager.GameManagerObj.GetComponent <GameManager>().GetModuleByName("SceneModule"); if (_sceneModule.m_enemyList[m_playerPos.m_row][m_playerPos.m_col] == null) { AudioFx.Instance.pawndown(); m_playereff.Play(); } else { MissionList.Instance.enemykilled++; AudioFx.Instance.pawnhit(); m_playereff.Play(); m_hiteff.Play(); _sceneModule.m_enemyList[m_playerPos.m_row][m_playerPos.m_col].DestroyObj(); _sceneModule.m_enemyList[m_playerPos.m_row][m_playerPos.m_col] = null; } bool _bWait = _sceneModule.WaitNpc(); if (_bWait) { EventManager.SendEvent(HLEventId.PLAYER_END_MOVE, null); } }