Esempio n. 1
0
    //[EnumAction(typeof(ChangeCharactor.ANIMAL_KIND))]
    public void Change(int nValue)
    {
        // 選択前のキャラを非表示
        int        nSelCharactor = SettingManager.LoadSelectCharactor();
        GameObject HideObj       = GetCharactor(nSelCharactor);

        if (HideObj)
        {
            HideObj.SetActive(false);
        }

        // 選択したキャラを表示
        GameObject DispObj = GetCharactor(nValue);

        if (DispObj)
        {
            DispObj.SetActive(true);
        }

        // 選択したキャラクターを保存
        SettingManager.SaveSelectCharactor(nValue);

        if (SkillText)
        {
            SkillText.text = GetCharactorSkill();
        }
        if (mGameSystem)
        {
            mGameSystem.ChangeCharactorDisp();
        }
    }