Exemplo n.º 1
0
 private void ClearBoard()
 {
     foreach (string currX in m_XObjTable)
     {
         SpriteComponent SC = m_GameCommand.RequestData <IComponent[]>(Constant.enumMessage.GET_GAMEOBJECTCOMPONENTS_BY_ID, new object[] { currX, new Constant.enumComponent[] { Constant.enumComponent.SPRITE } }).OfType <SpriteComponent>().FirstOrDefault();
         if (SC.m_isDrawn)
         {
             SC.SwitchDrawState();
         }
     }
     foreach (string currO in m_OObjTable)
     {
         SpriteComponent SC = m_GameCommand.RequestData <IComponent[]>(Constant.enumMessage.GET_GAMEOBJECTCOMPONENTS_BY_ID, new object[] { currO, new Constant.enumComponent[] { Constant.enumComponent.SPRITE } }).OfType <SpriteComponent>().FirstOrDefault();
         if (SC.m_isDrawn)
         {
             SC.SwitchDrawState();
         }
     }
 }