public void Begin() { UICityForm city = WindowManager.Instance.GetUI("city") as UICityForm; if (city != null) { BeginPaoPao(city.GetDepth()); } }
void CloseSubForm() { UICityForm form = WindowManager.Instance.GetUI("city") as UICityForm; if (form != null) { form.closeSubMenuForm(); } }
private void OnButtonClick() { mWaiting = false; if (mCurTitleID == -1) { OnEnd(); return; } if (mFlying) { return; } //暂时去掉移动效果 //OnButtonMoveEnd(); MenuTableItem item = DataManager.MenuTable[0] as MenuTableItem; Vector3 targetPos = Vector3.zero; UICityForm cityUI = WindowManager.Instance.GetUI("city") as UICityForm; if (cityUI != null) { //targetPos = cityUI.GetNextMenuPos(item.type); targetPos = cityUI.GetMenuPos(0, (FunctionType)item.menuOpType); } TweenPosition tp = TweenPosition.Begin(mIcon.gameObject, 0.5f, targetPos); tp.worldSpace = true; tp.from = mIcon.gameObject.transform.position; tp.to = targetPos; EventDelegate.Add(tp.onFinished, OnButtonMoveEnd); tp.PlayForward(); mFlying = true; }