public void LevelUp() { if (!model.IsLearn()) { View.CurrentScene.OpenView <TipView>().SetContent(DreamerUtil.GetColorRichText(model._config.skill_name, Color.yellow) + "\t学习成功!"); model.Learn(); } else { View.CurrentScene.OpenView <TipView>().SetContent(DreamerUtil.GetColorRichText(model._config.skill_name, Color.yellow) + "\t升级成功!"); } model.SetSkillLevel(1); ActorModel.Model.SetMoney(-model.GetLevelUpMoney()); EventManager.OnSkillLevelUp(model); }