Пример #1
0
	protected override void CloseDelegate( ref POINTER_INFO ptr)
	{
		if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP)
		{
			if( nowMenuMode == eCashStoreMenuMode.COSTUME && AsHudDlgMgr.Instance != null)
			{
				if (AsHudDlgMgr.Instance.cashShopEntity != null)
					if( AsHudDlgMgr.Instance.cashShopEntity.CheckModelLoadingState() != eModelLoadingState.Finished)
						return;
			}

			if( findGiftFriendPopup != null)
			{
				GameObject.DestroyImmediate( findGiftFriendPopup.gameObject);
				findGiftFriendPopup = null;
			}

			if( askSendGiftMsgBox != null)
			{
				GameObject.DestroyImmediate( askSendGiftMsgBox.gameObject);
				askSendGiftMsgBox = null;
			}

			Close();
		}
	}
Пример #2
0
	void FindFriend()
	{
		LockInput(true);
		
		if (AsGameMain.s_gameState == GAME_STATE.STATE_INGAME)
		{
			GameObject objMsgBoxPrefab = ResourceLoad.LoadGameObject("UI/AsGUI/GUI_MiraclePopup_Gift");

			GameObject msgBox = GameObject.Instantiate(objMsgBoxPrefab) as GameObject;

			msgBox.transform.parent = transform;
			msgBox.transform.localPosition = Vector3.zero;

			FindGiftFriendPopup findGiftFriend = msgBox.GetComponentInChildren<FindGiftFriendPopup>();

			if (findGiftFriend != null)
				findGiftFriendPopup = findGiftFriend;

			findGiftFriend.Initilize(this, "Deal", "Cancel");
		}
		else if (AsGameMain.s_gameState == GAME_STATE.STATE_CHARACTER_SELECT)
		{
			AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(1520), this, "Cancel", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE);
		}
	}