public void OnClickContinue() { if (PotentialPoints == 0) { GameState.Instance.PlayerRpgState.Experience = RpgValues.XPAfterMaxLevel(GameState.Instance.PlayerRpgState); GameState.Instance.PlayerRpgState.Level = NewLevel; GameState.Instance.PlayerRpgState.BaseStats.Skills = NewStats.Skills; //assign points GameState.Instance.PlayerRpgState.UpdateStats(); Destroy(this.gameObject); Callback.Invoke(); } else { //display a error Modal.PushMessageModal("You must assign all Potential Points", "Information", null, null); } }