private void OnMouseDown() { if (!EventSystem.current.IsPointerOverGameObject()) { if (m_currentState == EState.Resting) { m_soundManager.PlaySound(SoundManager.AudioClipList.AC_obstableImpossibleInteract); } if (m_territory.IsAvailable(GameManager.Instance.GetLocalPlayer())) { m_uiObstacle.SetActive(true); m_soundManager.PlaySound(SoundManager.AudioClipList.AC_clickOnWall); } else { m_uiObstacle.SetActive(false); m_uiGlobal.ShowWarning(Constant.ListOfText.s_warningTerritory); m_soundManager.PlaySound(SoundManager.AudioClipList.AC_obstableImpossibleInteract); } } }