public void NewPlayerGuide(int nIndex) { m_NewPlayerGuide_Step = nIndex; switch (nIndex) { case 0: TabButton tabFight = m_TabController.GetTabButton("Tab2"); if (tabFight) { NewPlayerGuidLogic.OpenWindow(tabFight.gameObject, 240, 70, "", "right", 0, true, true); } break; case 1: //NewPlayerGuidLogic.OpenWindow(m_ButtonFight, 280, 110, "请点此处", "right", 0,true, true); break; case 2: //TabButton tabButton3 = m_TabController.GetTabButton("Tab1"); //if (tabButton3) //{ // NewPlayerGuidLogic.OpenWindow(tabButton3.gameObject, 280, 110, "", "right", 0, true, true); //} break; case 3: // 藏经阁 TabButton tabButton5 = m_TabController.GetTabButton("Tab5"); if (tabButton5) { NewPlayerGuidLogic.OpenWindow(tabButton5.gameObject, 240, 70, "", "right", 0, true, true); } break; case 4: // 燕子坞 TabButton tabButton6 = m_TabController.GetTabButton("Tab6"); if (tabButton6) { NewPlayerGuidLogic.OpenWindow(tabButton6.gameObject, 240, 70, "", "right", 0, true, true); } break; case 5: // 聚贤庄 TabButton tabButton2 = m_TabController.GetTabButton("Tab3"); if (tabButton2) { NewPlayerGuidLogic.OpenWindow(tabButton2.gameObject, 240, 70, "", "right", 0, true, true); } break; case 6: // 珍珑棋局 TabButton tabButton7 = m_TabController.GetTabButton("Tab7"); if (tabButton7) { NewPlayerGuidLogic.OpenWindow(tabButton7.gameObject, 240, 70, "", "right", 0, true, true); } break; case 7: // 活动界面按钮 { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(3); } } } break; case 8: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(9); } } } break; case 9: { TabButton tabButtonHunDunZhiDi = m_TabController.GetTabButton("Tab2"); if (tabButtonHunDunZhiDi) { NewPlayerGuidLogic.OpenWindow(tabButtonHunDunZhiDi.gameObject, 240, 70, "", "right", 0, true, true); } } break; // 黄昏 case 30: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-HuoDong"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(40); } } } break; case 40: { TabButton huanghunyaosai = m_TabController.GetTabButton("Tab6"); if (huanghunyaosai) { NewPlayerGuidLogic.OpenWindow(huanghunyaosai.gameObject, 240, 70, "", "right", 0, true, true); } } break; // 机械研究所 case 31: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-HuoDong"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(41); } } } break; case 41: { TabButton jixieyanjiusuo = m_TabController.GetTabButton("Tab7"); if (jixieyanjiusuo) { NewPlayerGuidLogic.OpenWindow(jixieyanjiusuo.gameObject, 240, 70, "", "right", 0, true, true); } } break; // 雷纳包 case 32: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-HuoDong"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(42); } } } break; case 42: { TabButton leinabao = m_TabController.GetTabButton("Tab3"); if (leinabao) { NewPlayerGuidLogic.OpenWindow(leinabao.gameObject, 240, 70, "", "right", 0, true, true); } } break; // 冰冻地下 case 33: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-HuoDong"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(43); } } } break; case 43: { TabButton bingdongdixia = m_TabController.GetTabButton("Tab8"); if (bingdongdixia) { NewPlayerGuidLogic.OpenWindow(bingdongdixia.gameObject, 240, 70, "", "right", 0, true, true); } } break; // 废弃都市 case 34: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-HuoDong"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-HuoDong"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { NewPlayerGuide(44); } } } break; case 44: { TabButton bingdongdixia = m_TabController.GetTabButton("Tab13"); if (bingdongdixia) { Vector3 vOffset = Vector3.zero; vOffset.y = 60; m_TabController.GetComponentInParent <UIDraggablePanel>().MoveRelative(vOffset); NewPlayerGuidLogic.OpenWindow(bingdongdixia.gameObject, 240, 70, "", "right", 0, true, true); } } break; // pvp case 35: { TabButton tabHuoDong = m_HuoDongControl.GetTabButton("Button1-TiaoZhan"); if (tabHuoDong) { m_HuoDongControl.ChangeTab("Button1-TiaoZhan"); } if (tabHuoDong && tabHuoDong.objHighLight) { if (tabHuoDong.objHighLight.activeInHierarchy == false) { NewPlayerGuidLogic.OpenWindow(tabHuoDong.gameObject, 240, 70, "", "right", 0, true, true); } else { //NewPlayerGuide(44); } } } break; } if (m_TabUITopGrid) { //m_TabUITopGrid.transform.parent.GetComponent<UIDraggablePanel>().scale = Vector3.zero; } }