// Use this for enter state
        public override void OnStateBegin()
        {
            ControlMapper controlMapper = m_ControlMapper.value as ControlMapper;

            if (controlMapper == null)
            {
                return;
            }

            controlMapper.Close(m_SaveOnClose.value);
        }
Ejemplo n.º 2
0
        public override void OnStateEnd()
        {
            if (m_CachedControlMapper == null)
            {
                return;
            }

            if (m_CachedCloseOnEnd)
            {
                m_CachedControlMapper.Close(m_CachedSaveOnEnd);
            }

            RemoveListerOnScreeClosed();
        }