コード例 #1
0
ファイル: Console.cs プロジェクト: b2220333/uGameCore
        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>();
        }
コード例 #2
0
ファイル: ConsoleCanvas.cs プロジェクト: b2220333/uGameCore
 void Awake()
 {
     Instance = this;
 }