public void DisplayHuXingFloorScrollMenu() { if (currentSelectHuXingType.allFloor.Length > 1) { List <string> dName = new List <string>(); dName.AddRange(currentSelectHuXingType.GetHuXingAllDisplayName()); List <string> pName = new List <string>(); pName.AddRange(currentSelectHuXingType.GetHuXingAllFloorName()); dName.Reverse(); pName.Reverse(); huXingFloorScrollMenu.CreateItemGroup(dName.ToArray(), pName.ToArray()); huXingFloorScrollMenu.GetComponent <CanveGroupFade>().AlphaPlayForward(); huXingFloorScrollMenu.GetComponent <GameObjectTweenCtrl>().MoveAchorPos(new Vector2(-65, -1075), 0.0f); } }
public void EnterHuXingFloor(CameraUniversalCenter camCenter, string floorName, CanveGroupFade triggerFastMoveSM, ScrollMenu fastMoveSM) { DisplayAllFloorMesh(); currentAtFloor.floorName = ""; foreach (floor f in allFloor) { if (f.floorName == floorName) { currentAtFloor = f; isMYing = true; camCenter.ChangeCamera(f.cameraUniversal, 0.5f); if (f.pointForMove2 != null && f.pointForMove2.Length > 0) { fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1); triggerFastMoveSM.AlphaPlayForward(); string[] displayGroup = new string[f.pointForMove2.Length]; string[] paraGroup = new string[f.pointForMove2.Length]; for (int i = 0; i < f.pointForMove2.Length; i++) { displayGroup[i] = f.pointForMove2[i].name; paraGroup[i] = i.ToString(); } fastMoveSM.CreateItemGroup(displayGroup, paraGroup); } else { fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1); triggerFastMoveSM.AlphaPlayBackward(); } } } }
public void ExitPoint360() { if (hasEnterPoint360) { hasEnterPoint360 = false; backAction.RemoveAllBackEvent(); exitPoint360.AlphaPlayBackward(); exitLandscape.AlphaPlayForward(); backActionBtn.AlphaPlayBackward(); huXingInfoLabel.HiddenHuXingInfoLabel(); assetBundleManager.LoopRemoveAddedScene(0); assetBundleManager.OnSceneRemoved.AddListener(assetBundleManager.LoopLoadSceneAssetBundleDefault); mainGUIPoint360Btn.SetBtnState(false, 3); huXingScrollMenu.GetComponent <CanveGroupFade>().AlphaPlayBackward(); } }
public void ExitHuXingFloor(bool inPortrait) { appBridge.Unity2App("unityNKLook", currentSelectHuXingType.viewDisplayMode); if (currentSelectHuXingType.fastMovePointManager != null) { // currentSelectHuXingType.fastMovePointManager.SetMovePointsState(false); triggerLockMove.AlphaPlayBackward(); lockMove.SetBtnState(true, 0); // UnLockMove(); } triggerFCZ.AlphaPlayForward(); huXingFloorScrollMenu.SetNonStandFloorBtnVisblity(true); if (!inPortrait) { hxScene.huXingType.hxMeshRoot.position = hxScene.huXingType.hxNKWorldPos; hxScene.huXingType.hxMeshRoot.eulerAngles = new Vector3(0, hxScene.huXingType.rotOffset, 0); hxfbMat.SetColor("_Color", new Color(0, 0, 0, 0.8f)); sceneInteractiveManger.RenderSenceThumbnail(sceneInteractiveManger.thumbnailOutdoor, hxfbScene, hxfbScene.cameraUniversalCenter.currentCamera, hxfbCameraArgs); xfGUI.CloseXFMenu(); } else { if (hxScene != null && hxScene.websky != null) { hxScene.websky.gameObject.SetActive(false); } } currentSelectHuXingType.ExitHuXingFloor(hxScene.cameraUniversalCenter); huXingFastMoveScrollMenu.GetComponent <RectTransform>().DOAnchorPosY(60, 1); triggerFastMoveSM.AlphaPlayBackward(); }