Ejemplo n.º 1
0
 //TODO: POPULATE THIS FOR TESTING.
 void LoadMessages()
 {
     message.AddMessage("Elvis is cool", null);
     message.AddMessage("I am cool.", null);
     message.AddMessage("No way, hose b.", null);
     message.AddMessage("Bebebebebebe", null);
     message.AddMessage("Bad news, beagle", null);
     message.SetLoop(false);
     message.active = true;
 }
Ejemplo n.º 2
0
    //builds score/timer UI pane
    void BuildUI()
    {
        uiPanel = BuildBasePanel(GetBlankSpace());
        AttachUIPanels(uiPanel);

        GameObject mess = Instantiate(messagePane);

        message = mess.GetComponent <MessageDisplay>();
        message.SetLoop(true);
        RectTransform rect = message.GetComponent <RectTransform>();

        rect.parent        = canvas.GetComponent <RectTransform>();
        rect.localPosition = new Vector3(0, 0, 0);
    }