示例#1
0
 private void Start()
 {
     CharacterClass.ChooseClass(0);
     for (int s = 0; s < CharacterClass.stats.Length; s++)
     {
         gm.stats[s].value = CharacterClass.stats[s];
     }
 }
示例#2
0
    public void Choose()
    {
        CharacterClass.ChooseClass(index);



        for (int s = 0; s < CharacterClass.stats.Length; s++)
        {
            gm.stats[s].value = CharacterClass.stats[s];
        }
        //updateui
        gm.StatButtonUpdate();
    }
示例#3
0
    public void Choose()
    {
        for (int i = 0; i < 8; i++)
        {
            if (CharacterClass.selectedClass[index] == this.gameObject.name)
            {
                Debug.Log(this.gameObject.name);

                CharacterClass.ChooseClass(index);
            }
        }
        for (int s = 0; s < CharacterClass.stats.Length; s++)
        {
            gm.stats[s].value = CharacterClass.stats[s];
        }
        //updateui
        gm.StatButtonUpdate();
    }