Exemple #1
0
        // Use this for initialization
        void Start()
        {
            dcc        = dialogueCanvas.GetComponent <DialogueCanvasController> ();
            memories   = new List <string>();
            txtOut     = errorText.GetComponent <UnityEngine.UI.Text>();
            txtBSOD    = bsodText.GetComponent <UnityEngine.UI.Text>();
            txtChoice1 = choice1Obj.GetComponent <UnityEngine.UI.Text>();
            txtChoice2 = choice2Obj.GetComponent <UnityEngine.UI.Text>();

            foreach (string mem in funmems)
            {
                memories.Add(mem);
            }

            foreach (string mem in sadmems)
            {
                memories.Add(mem);
            }

            InvokeRepeating("CountDown", 0.0f, 0.009f);
        }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     dcc         = dialogueCanvas.GetComponent <DialogueCanvasController> ();
     dogRenderer = doggo.GetComponent(typeof(SpriteRenderer)).GetComponent <Renderer>() as SpriteRenderer;
 }