public void OnPointerClick(PointerEventData eventData) { if (_gameStateModel.GetGameState() != GameState.OnPlay) { return; } _switchObject.SetClick(InputState.Click); }