Пример #1
0
 private void _Strength()
 {
     if (MuduleManager.Get <Role>().Point > 0)
     {
         MuduleManager.Get <Role>().Point--;
         StrengthPoint++;
         Strength.text = StrengthPoint.ToString();
     }
 }
Пример #2
0
 private void _Dex()
 {
     if (MuduleManager.Get <Role>().Point > 0)
     {
         MuduleManager.Get <Role>().Point--;
         DexPoint++;
         Dex.text = DexPoint.ToString();
     }
 }
Пример #3
0
 private void _focus()
 {
     if (MuduleManager.Get <Role>().Point > 0)
     {
         MuduleManager.Get <Role>().Point--;
         focusPoint++;
         focus.text = focusPoint.ToString();
     }
 }
Пример #4
0
 private void OnClick()
 {
     if (toggle.isOn)
     {
         PlayerPrefs.SetString("Name", Name.text);
         MuduleManager.Get <Role>().Name = PlayerPrefs.GetString("Name");
     }
     else
     {
         PlayerPrefs.DeleteKey("Name");
     }
 }
Пример #5
0
    /// <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);
        }
    }
Пример #6
0
    /// <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);
        }
    }
Пример #7
0
 private void OnLevel(GameObject _listener, object _args, object[] _params)
 {
     MuduleManager.Get <Role>().Level++;
     MuduleManager.Get <Role>().Point += 5;
 }
Пример #8
0
 protected override void OnRefresh()
 {
     name.text = MuduleManager.Get <RoleModule>().Name;
     LV.text   = MuduleManager.Get <RoleModule>().Level.ToString();
 }
Пример #9
0
 private void RefreshName()
 {
     name.text = MuduleManager.Get <RoleModule>().Name;
 }
Пример #10
0
 private void RefreshLevel()
 {
     LV.text = MuduleManager.Get <RoleModule>().Level.ToString();
 }
Пример #11
0
 protected override void OnRefresh()
 {
     name.text = MuduleManager.Get <Role>().Name;
 }
Пример #12
0
 private void RefreshpointLevel()
 {
     Lv.text = MuduleManager.Get <Role>().Level.ToString();
 }