예제 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            if (reader.ReadBool())
            {
                m_Blocker = reader.ReadItem() as Blocker;

                if (m_Blocker != null)
                {
                    m_Blocker.Delete();
                }
            }

            if (reader.ReadBool())
            {
                m_LOSBlocker = reader.ReadItem() as LOSBlocker;

                if (m_LOSBlocker != null)
                {
                    m_LOSBlocker.Delete();
                }
            }

            Delete();
        }
예제 #2
0
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            if (BoardGameControlItem != null)
            {
                BoardGameControlItem.Delete();
            }

            if (_Blocker != null)
            {
                _Blocker.Delete();
            }
        }
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            if (m_Timer != null)
            {
                m_Timer.Stop();
                m_Timer = null;
            }

            if (m_LOSBlocker != null)
            {
                if (!m_LOSBlocker.Deleted)
                {
                    m_LOSBlocker.Delete();
                }
            }

            if (!Deleted)
            {
                Delete();
            }
        }