Esempio n. 1
0
    //Dialogue start and Dialogue end functions
    #region dialogueStartandEnd

    void OnDialogueStart()
    {
        npcData = jsonData.npcData;

        Color newColor = new Color(npcData.colorRed, npcData.colorGreen, npcData.colorBlue, 255f);

        _textEffect.ChangeColor(newColor);
        dialogueName.SetName(npcData.name, newColor);

        dialogueActive = true;
        Time.timeScale = 0;
        canvas.enabled = true;
        _speed         = npcData.textSpeed;
    }