Ejemplo n.º 1
0
    void Start()
    {
        dia_Play    = GetComponent <Dia_Play>();
        myState     = transform.parent.GetComponent <PlayerState>();
        file_parser = new File_parser();
        file_parser.FileOpen(fileName);
        file_parser.Parse();
        DialogueStrings     = file_parser.GetText();
        chatChar            = file_parser.GetTextChar();
        _textComponent.text = "";
        moveSetting();
        HideIcons();

        StartCoroutine(StartDialogue());
        file_parser.FileClose();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        textArea = GetComponent <Text>();
        stage    = Singletone.Instance.stage;
        Debug.Log(stage);
        file_parser = new File_parser();
        file_parser.FileOpen(FileName[stage]);
        file_parser.Reading();
        DialogueStrings = file_parser.GetText();
        StartCoroutine(DisplayTimer());
        file_parser.FileClose();
        switch (stage)
        {
        case 0:
            textArea.color = new Color(1, 0, 1);
            break;

        case 1:
            textArea.color = new Color(1, 1, 0);
            break;

        case 2:
            textArea.color = new Color(0, 1, 0);
            break;

        case 3:
            textArea.color = new Color(1, 0, 0);
            break;

        case 4:
            textArea.color = new Color(0, 1, 1);
            break;

        case 5:
            textArea.color = new Color(1, 0, 1);
            break;

        case 6:
            textArea.color = new Color(1, 0, 1);
            break;
        }
    }