private void OnMouseDown() { if (EventSystem.current.IsPointerOverGameObject(-1) == true) { return; } if (EventSystem.current.IsPointerOverGameObject(0) == true) { return; } if (characterStat.canLevelUp(gameManager.seed)) { characterStat.increaseLevel(); gameManager.seed -= characterStat.upgradeCost; gameManager.updateText(); } }