Пример #1
0
    public void SelectCharacter()
    {
        if (characterDB == null)
        {
            return;
        }

        if (characterDB.hasCharacter == true)
        {
            PlayerPrefs.SetInt(PlayerPrefKeys.CharacterKeyValue, (int)characterType);
            if (parent != null)
            {
                parent.RegistSelectSlot(this);
            }
        }
        else if (characterDB.hasCharacter == false)
        {
            if (parent != null)
            {
                parent.ShowHowToGet(this);
            }

            SoundManager.Instance.PlaySoundEffect("error");
        }


        //if (passiveWindowOnFunc != null)
        //    passiveWindowOnFunc();
    }