public static void OpenGamingMap()
 {
     sm_MapWin          = GetWindow <CreateGamingMapWindow>();
     sm_MapWin.position = new Rect(600, 300, 400, 400);
     sm_MapWin.minSize  = new Vector2(700, 400);
     sm_MapWin.Show();
 }
Example #2
0
		/// <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;
			}
		}