/* * On mouse button pressed */ private void OnMouseDown() { // Destroy hint if (hintManager) { hintManager.DestroyHints(); } // Set initial position of input if (gameBoard.currentPlayerState == PlayerState.Active && !Utilities.IsGamePaused) { initialTouchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); } }