Ejemplo n.º 1
0
 public void change_state(e_game_state state, int type, ChangeStateHandle handle, List <int> param = null)
 {
     m_game_state = state;
     if (m_game_state == e_game_state.egs_gameload)
     {
     }
     else if (m_game_state == e_game_state.egs_loading || m_game_state == e_game_state.egs_login)
     {
         play_mus("music/login");
     }
     else if (m_game_state == e_game_state.egs_edit_select || m_game_state == e_game_state.egs_play_select)
     {
         play_mus("music/select");
     }
     else if (m_game_state == e_game_state.egs_edit)
     {
         play_mus("music/select", true, 0.5f);
     }
     else if (m_game_state == e_game_state.egs_br_road || m_game_state == e_game_state.egs_br_end)
     {
         play_mus("music/road");
     }
     else if (m_game_state == e_game_state.egs_br_start)
     {
         stop_mus();
     }
     else
     {
         play_mus(game_data._instance.get_map_music(0), true, 1 - game_data._instance.m_map_data.no_music);
     }
     if (type == 0)
     {
         if (handle != null)
         {
             handle();
         }
         end_change_state();
     }
     else if (type == 1)
     {
         show_mask(delegate() { handle(); end_change_state(); });
     }
     else if (type == 2)
     {
         show_play_mask(delegate() { handle(); end_change_state(); });
     }
     else if (type == 3)
     {
         show_mask(delegate() { handle(); end_change_state(); }, param[0], param[1]);
     }
 }
Ejemplo n.º 2
0
 public void show_play_mask(ChangeStateHandle handle)
 {
     m_play_mask_gui.GetComponent <play_mask_gui>().reset(handle);
 }
Ejemplo n.º 3
0
 public void show_mask(ChangeStateHandle handle, int x, int y)
 {
     m_mask_gui.GetComponent <mask_gui>().reset(handle, 1, x, y);
 }