Exemple #1
0
    void Start()
    {
        fade = GameObject.Find("Fade").GetComponent <fadeToBlack> ();

        isTalking = true;

        if (textFiles != null)
        {
            textLines = (textFiles.text.Split('\n'));
        }

        if (endAtLine == 0)
        {
            endAtLine = textLines.Length - 1;
        }

        anim = GetComponent <Animator> ();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     fade      = GameObject.Find("Fade").GetComponent <fadeToBlack> ();
     crossOver = GameObject.Find("CrossOver").GetComponent <crossOverInfo> ();
     cam       = GameObject.Find("FirstPersonCharacter").transform;
 }