반응형
Notice
Recent Posts
Recent Comments
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

Do Something IT

유니티 Ngui 체팅창 bbcord 이벤트 받기 본문

Unity3D

유니티 Ngui 체팅창 bbcord 이벤트 받기

아낙시만더 2018. 1. 10. 15:17
반응형
//==============================================================
	void OnClick()
	{
		if(m_cmptLabel == null)
			return;
		
		Parse(m_cmptLabel.GetUrlAtPosition(UICamera.lastHit.point));
	}

	//==============================================================
	void Parse(string _strFormat)
	{
		if(string.IsNullOrEmpty(_strFormat))
			return;
		
		string[]	listStrValue	= _strFormat.Split(listSeparatingString, System.StringSplitOptions.RemoveEmptyEntries);
		if(listStrValue == null  || listStrValue.Length != 2)
			return;

		int			nFishID	 = csCommon.NONE;
		if(int.TryParse(listStrValue[0], out nFishID))
		{
			float	fFishSize	= 0;
			if(float.TryParse(listStrValue[1], out fFishSize))
				ShowFishPoptip(nFishID, fFishSize);
		}
	}

	//==============================================================
	void ShowFishPoptip(int _nFishID, float _fFishSize, 
						csCommon.STAGE_DIFFICULTY_TYPE _eStageDifficulty = csCommon.STAGE_DIFFICULTY_TYPE.Amateur)
	{
		csFishPoptip2.Param	param	= new csFishPoptip2.Param();
		param.FishNID				= _nFishID;
		param.FishSize				= _fFishSize;
		param.stageDifficult		= csCommon.STAGE_DIFFICULTY_TYPE.Amateur;
		csPoptipManager.Instance.Push(PoptipType.FishPoptip2, 0, 0, param);
	}
반응형
Comments