コード例 #1
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_player = null;
         m_level  = null;
         if (m_alphaMaskRT != null && !m_alphaMaskRT.IsDisposed)
         {
             m_alphaMaskRT.Dispose();
         }
         m_alphaMaskRT = null;
         if (m_mapScreenRT != null && !m_mapScreenRT.IsDisposed)
         {
             m_mapScreenRT.Dispose();
         }
         m_mapScreenRT = null;
         foreach (var current in m_roomSpriteList)
         {
             current.Dispose();
         }
         m_roomSpriteList.Clear();
         m_roomSpriteList = null;
         foreach (var current2 in m_doorSpriteList)
         {
             current2.Dispose();
         }
         m_doorSpriteList.Clear();
         m_doorSpriteList = null;
         foreach (var current3 in m_iconSpriteList)
         {
             current3.Dispose();
         }
         m_iconSpriteList.Clear();
         m_iconSpriteList = null;
         AddedRoomsList.Clear();
         AddedRoomsList = null;
         m_roomSpritePosList.Clear();
         m_roomSpritePosList = null;
         m_doorSpritePosList.Clear();
         m_doorSpritePosList = null;
         m_iconSpritePosList.Clear();
         m_iconSpritePosList = null;
         m_playerSprite.Dispose();
         m_playerSprite = null;
         foreach (var current4 in m_teleporterList)
         {
             current4.Dispose();
         }
         m_teleporterList.Clear();
         m_teleporterList = null;
         m_teleporterPosList.Clear();
         m_teleporterPosList = null;
         m_xOffsetTween      = null;
         m_yOffsetTween      = null;
         base.Dispose();
     }
 }
コード例 #2
0
 public void ClearRoomsAdded()
 {
     AddedRoomsList.Clear();
 }