Esempio n. 1
0
    void InitCharacterManager(InitCharacterManagerEvent e)
    {
        for (int i = 0; i < _CharacterList.Length; i++)
        {
            if (e.Type == _CharacterList[i].Type)
            {
                _Character = new GameplayCharacter(_CharacterList[i].Object, _CharacterList[i].Type, _CharacterList[i].Animator, _CharacterList[i].WinObject, _CharacterList[i].LoseObject, _CharacterList[i].Head, _CharacterList[i].IdleFace, _CharacterList[i].SadFace, _CharacterList[i].HappyFace, _CharacterList[i].AnxiousFace);
                _Character.Object.SetActive(true);
                _Character.WinObject.SetActive(false);
                _Character.LoseObject.SetActive(false);

                _CharacterAnxious.transform.SetParent(_Character.Head.transform);
                _CharacterAnxious.GetComponent <RectTransform>().anchoredPosition = new Vector2(0, -53);
            }
            else
            {
                _CharacterList[i].Object.SetActive(false);
                _CharacterList[i].WinObject.SetActive(false);
                _CharacterList[i].LoseObject.SetActive(false);
            }
        }

        _Enemy.Object.SetActive(true);
        _Enemy.WinObject.SetActive(false);
        _Enemy.LoseObject.SetActive(false);
        _LastFace = new FaceEvent(FaceType.IDLE, true);
        FaceHandler(_LastFace);

        _CharacterAnxious.SetActive(false);
        _EnemyAnxious.SetActive(false);
    }
Esempio n. 2
0
    void InitCharacterManager(InitCharacterManagerEvent e)
    {
        Dodo.SetActive(false);
        DodoWin.SetActive(false);
        DodoLose.SetActive(false);

        Nina.SetActive(false);
        NinaWin.SetActive(false);
        NinaLose.SetActive(false);

        Enemy.SetActive(false);
        EnemyWin.SetActive(false);
        EnemyLose.SetActive(false);

        Game2Quiz.Clear();
        RandomizedQuiz.Clear();
        SpamBlocker.SetActive(false);

        if (e.Type == 0)
        {
            Dodo.SetActive(true);
            Enemy.SetActive(true);
            m_AnimatorDodo.SetBool("IsPlay", false);
            m_AnimatorEnemy.SetBool("IsPlay", false);
            CharacterPick = 0;
        }
        else
        {
            Nina.SetActive(true);
            Enemy.SetActive(true);
            m_AnimatorNina.SetBool("IsPlay", false);
            m_AnimatorEnemy.SetBool("IsPlay", false);
            CharacterPick = 1;
        }
    }