public virtual void Awake() { if (dialogueUI == null) { dialogueUI = Tools.GetComponentAnywhere <UnityUIDialogueUI>(gameObject); } if (typewriterEffect == null) { typewriterEffect = GetComponentInChildren <UnityUITypewriterEffect>(); } }
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); }