Beispiel #1
0
 public void ActiveDialogue()
 {
     introCanvas.SetActive(false);
     tutorialGuideCanvas.SetActive(true);
     tutorialDialogueController = FindObjectOfType <TutorialDialogueController>();
     Initialize();
 }
Beispiel #2
0
    public void OnClickButton()
    {
        int currentMoney = int.Parse(moneyText.text);

        if (currentMoney >= cost)
        {
            if (EffectSoundController.instance != null)
            {
                EffectSoundController.instance.PlaySoundByName(EffectSoundController.SOUND_NAME.GET_NEW_DICE);
            }
            moneyText.text = (int.Parse(moneyText.text) - cost).ToString();
            ResetDices();
            blockController.HandleLastBlock(null, 0);

            if (TutorialDialogueController.dialogueTurn == 19)
            {
                tutorialDialogueController = FindObjectOfType <TutorialDialogueController>();
                tutorialDialogueController.Apply();
            }
        }
    }