Exemplo n.º 1
0
 private void Awake()
 {
     text      = GetComponent <Text>();
     textPro   = GetComponent <TMP_Text>();
     textProxy = GetComponent <TextProxy>();
     this.RuntimeAssert(text != null || textPro != null || textProxy != null,
                        "Missing Text or TMP_Text or TextProxy.");
 }
Exemplo n.º 2
0
        private void Awake()
        {
            textProxy = GetComponent <TextProxy>();
            textProxy.Init();

#if UNITY_EDITOR
            textProxy.CheckFontInConfig();
#endif
        }
Exemplo n.º 3
0
 private void Awake()
 {
     text      = GetComponent <Text>();
     textPro   = GetComponent <TMP_Text>();
     textProxy = GetComponent <TextProxy>();
     this.RuntimeAssert(text != null || textPro != null || textProxy != null,
                        "Missing Text or TMP_Text or TextProxy.");
     configManager = Utils.FindNovaGameController().ConfigManager;
 }
Exemplo n.º 4
0
        private void InitReferences()
        {
            if (inited)
            {
                return;
            }
            textProxy = transform.Find("Text").GetComponent <TextProxy>();
            textProxy.Init();
            goBackButton = transform.Find("Text/GoBackButton").GetComponent <Button>();
            var buttons = transform.Find("Buttons");

            playVoiceButton = buttons.Find("PlayVoiceButton").GetComponent <Button>();
            inited          = true;
        }
Exemplo n.º 5
0
        private void Awake()
        {
            text      = GetComponent <Text>();
            textPro   = GetComponent <TMP_Text>();
            textProxy = GetComponent <TextProxy>();
            this.RuntimeAssert(text != null || textPro != null || textProxy != null,
                               "Missing Text or TMP_Text or TextProxy.");

            if (textProxy != null)
            {
                textProxy.Init();
            }

            initFontSize = fontSize;
        }
Exemplo n.º 6
0
        private void InitReferences()
        {
            if (inited)
            {
                return;
            }

            nameBox = transform.Find("Name").GetComponent <Text>();
            var textTransform = transform.Find("Content/Text");

            contentBox   = textTransform.GetComponent <TMP_Text>();
            contentProxy = textTransform.GetComponent <TextProxy>();
            contentProxy.Init();

            verticalLayoutGroup = GetComponent <VerticalLayoutGroup>();
            textLayoutElement   = textTransform.GetComponent <LayoutElement>();

            inited = true;
        }
Exemplo n.º 7
0
 private void Awake()
 {
     textProxy = GetComponent <TextProxy>();
 }