public virtual DialogWrite GetWriter() { if (m_writer != null) { return(m_writer); } m_writer = GetComponent <DialogWrite>(); if (m_writer == null) { m_writer = gameObject.AddComponent <DialogWrite>(); } return(m_writer); }
protected virtual void Awake() { writer = GetComponent <DialogWrite>(); CheckEventSystem(); }