Exemple #1
0
        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);
        }
Exemple #2
0
        protected virtual void Awake()
        {
            writer = GetComponent <DialogWrite>();

            CheckEventSystem();
        }