예제 #1
0
 public bool CloseAll()
 {
     if (allies != null && allies.Visible)
     {
         allies.Close();
     }
     if (animations != null && animations.Visible)
     {
         animations.Close();
     }
     if (attacks != null && attacks.Visible)
     {
         attacks.Close();
     }
     if (audio != null && audio.Visible)
     {
         audio.Close();
     }
     if (battlefields != null && battlefields.Visible)
     {
         battlefields.Close();
     }
     if (dialogues != null && dialogues.Visible)
     {
         dialogues.Close();
     }
     if (effects != null && effects.Visible)
     {
         effects.Close();
     }
     if (eventScripts != null && eventScripts.Visible)
     {
         eventScripts.Close();
     }
     if (formations != null && formations.Visible)
     {
         formations.Close();
     }
     if (items != null && items.Visible)
     {
         items.Close();
     }
     if (levels != null && levels.Visible)
     {
         levels.Close();
     }
     if (monsters != null && monsters.Visible)
     {
         monsters.Close();
     }
     if (sprites != null && sprites.Visible)
     {
         sprites.Close();
     }
     if (intro != null && intro.Visible)
     {
         intro.Close();
     }
     if (menus != null && menus.Visible)
     {
         menus.Close();
     }
     if (miniGames != null && miniGames.Visible)
     {
         miniGames.Close();
     }
     if (worldMaps != null && worldMaps.Visible)
     {
         worldMaps.Close();
     }
     if ((allies != null && allies.Visible) ||
         (animations != null && animations.Visible) ||
         (attacks != null && attacks.Visible) ||
         (battlefields != null && battlefields.Visible) ||
         (dialogues != null && dialogues.Visible) ||
         (effects != null && effects.Visible) ||
         (eventScripts != null && eventScripts.Visible) ||
         (formations != null && formations.Visible) ||
         (items != null && items.Visible) ||
         (levels != null && levels.Visible) ||
         (monsters != null && monsters.Visible) ||
         (sprites != null && sprites.Visible) ||
         (intro != null && intro.Visible) ||
         (menus != null && menus.Visible) ||
         (miniGames != null && miniGames.Visible) ||
         (worldMaps != null && worldMaps.Visible))
     {
         return(true);
     }
     return(false);
 }