コード例 #1
0
    private void OnFadeOutComplete()
    {
        gameController.fadeController.FadeOutComplete -= OnFadeOutComplete;
        GenerateMessages();

        topTextRevealer.RevealText();
        currentTextRevealer = topTextRevealer;

        isFadingOut = false;
    }
コード例 #2
0
    public void OnTopTextFinished()
    {
        currentTextRevealer = middleTextRevealer;
        middleTextRevealer.RevealText();

        int statModifier = Random.Range(1, 3);

        if (gameController.player.Stats.GetStatVal(topTextStatToModify) - statModifier >= 0)
        {
            gameController.player.Stats.AddToStat(topTextStatToModify, -1 * statModifier);
        }
    }
コード例 #3
0
 private void OnMiddleTextFinished()
 {
     currentTextRevealer = bottomTextRevealer;
     bottomTextRevealer.RevealText();
 }