Exemplo n.º 1
0
        private void FindUIElements()
        {
            this.consoleCanvas = Utilities.Utilities.FindObjectOfTypeOrLogError <ConsoleCanvas>();
            var tr = this.consoleCanvas.transform;

            this.consoleScrollView       = tr.GetComponentInChildren <ScrollRect> ();
            this.consoleTextDisplay      = tr.FindChildRecursivelyOrLogError("TextDisplay").GetComponent <InputField>();
            this.consoleSubmitButton     = tr.FindChildRecursivelyOrLogError("SubmitButton").GetComponent <Button>();
            this.consoleSubmitInputField = tr.FindChildRecursivelyOrLogError("SubmitInputField").GetComponent <InputField>();
            this.consoleStatsTextControl = tr.FindChildRecursivelyOrLogError("Stats").GetComponent <Text>();
        }
Exemplo n.º 2
0
 void Awake()
 {
     Instance = this;
 }