private void _Strength() { if (MuduleManager.Get <Role>().Point > 0) { MuduleManager.Get <Role>().Point--; StrengthPoint++; Strength.text = StrengthPoint.ToString(); } }
private void _Dex() { if (MuduleManager.Get <Role>().Point > 0) { MuduleManager.Get <Role>().Point--; DexPoint++; Dex.text = DexPoint.ToString(); } }
private void _focus() { if (MuduleManager.Get <Role>().Point > 0) { MuduleManager.Get <Role>().Point--; focusPoint++; focus.text = focusPoint.ToString(); } }
private void OnClick() { if (toggle.isOn) { PlayerPrefs.SetString("Name", Name.text); MuduleManager.Get <Role>().Name = PlayerPrefs.GetString("Name"); } else { PlayerPrefs.DeleteKey("Name"); } }
/// <summary> /// 调用数据库Role 实时更新。 /// </summary> private void Refreshpoint() { PointSum.text = MuduleManager.Get <Role>().Point.ToString(); if (MuduleManager.Get <Role>().Point > 0) { black.gameObject.SetActive(false); } if (MuduleManager.Get <Role>().Point <= 0) { //Point = 0; black.gameObject.SetActive(true); } }
/// <summary> /// /// </summary> protected override void OnRefresh() { Lv.text = MuduleManager.Get <Role>().Level.ToString(); PointSum.text = MuduleManager.Get <Role>().Point.ToString(); if (MuduleManager.Get <Role>().Point > 0) { black.gameObject.SetActive(false); } if (MuduleManager.Get <Role>().Point <= 0) { //Point = 0; black.gameObject.SetActive(true); } }
private void OnLevel(GameObject _listener, object _args, object[] _params) { MuduleManager.Get <Role>().Level++; MuduleManager.Get <Role>().Point += 5; }
protected override void OnRefresh() { name.text = MuduleManager.Get <RoleModule>().Name; LV.text = MuduleManager.Get <RoleModule>().Level.ToString(); }
private void RefreshName() { name.text = MuduleManager.Get <RoleModule>().Name; }
private void RefreshLevel() { LV.text = MuduleManager.Get <RoleModule>().Level.ToString(); }
protected override void OnRefresh() { name.text = MuduleManager.Get <Role>().Name; }
private void RefreshpointLevel() { Lv.text = MuduleManager.Get <Role>().Level.ToString(); }