public virtual void Awake()
 {
     if (dialogueUI == null)
     {
         dialogueUI = Tools.GetComponentAnywhere <UnityUIDialogueUI>(gameObject);
     }
     if (typewriterEffect == null)
     {
         typewriterEffect = GetComponentInChildren <UnityUITypewriterEffect>();
     }
 }
예제 #2
0
        public void Start()
        {
            Usable usable = Tools.GetComponentAnywhere <Usable>(gameObject);

            if ((usable != null) && (nameText != null))
            {
                nameText.text = usable.GetName();
            }
            if (canvas != null)
            {
                canvas.enabled = false;
            }
        }
 public virtual void Awake()
 {
     if (dialogueUI == null)
     {
         dialogueUI = Tools.GetComponentAnywhere <UnityUIDialogueUI>(gameObject);
     }
     if (typewriterEffect == null)
     {
         typewriterEffect = GetComponentInChildren <UnityUITypewriterEffect>();
     }
     continueButton = GetComponent <UnityEngine.UI.Button>();
     Tools.DeprecationWarning(this);
 }