/// <summary> /// Grid点击事件 /// </summary> /// <param name="gridIndex"></param> private void OnClickGrid(int gridIndex) { if(gridIndex<0) { return; } m_SelectIndex = -1; MapFunctionType funType = (MapFunctionType)gridIndex; switch(funType) { case MapFunctionType.CreateGamingMap: CreateGamingMapWindow.OpenGamingMap(); break; case MapFunctionType.OpenGamingMap: OpenGamingMapWindow.OpenGamingMap(); break; case MapFunctionType.CreateMap: CreateMapWindow.OpenCreateMap(); break; } }
public static void OpenGamingMap() { sm_OpenMapWin = GetWindow <OpenGamingMapWindow>(); sm_OpenMapWin.Show(); }