void Awake() { if (Holder == null) { Holder = Resources.Load <FontHolder> ("ArialFontHolder"); } GameObject textSubObject = new GameObject("text"); textSubObject.transform.SetParent(this.transform); text = textSubObject.AddComponent <Text> (); text.font = Holder.Font; text.color = Color.white; Layout = textSubObject.AddComponent <LayoutElement> (); }
internal Context(FontHolder fonts, InputListener input) { Fonts = fonts; Input = input; }