예제 #1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(this);
            Debug.LogError("More than one instance of FeedbackManager Script was found!");
        }

        getPHP            = GetComponent <GetPHP>();
        scoreTextAnimator = scoreText.gameObject.GetComponent <Animator>();
        chainTextAnimator = chainText.gameObject.GetComponent <Animator>();

        levelStatsData = new LevelStats(SceneLoader.instance.playingInfo.name,
                                        SceneLoader.instance.playingInfo.music,
                                        SceneLoader.instance.playingInfo.team,
                                        SceneLoader.instance.playingInfo.idSession);
        SetGradeTexts();
        SetMusicData();
        SetParticleSystemColor();
        state = uiState.PLAYING;
    }
예제 #2
0
 private void Start()
 {
     loadedInfo.grades = new int[3];
     getPHP            = GetComponent <GetPHP>();
     state             = loginUIState.LOGIN;
 }