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>(); }
void Awake() { Instance = this; }