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