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