public void Recv_SubtitleAccrueRewardResult(body_SC_SUBTITLE_ACCRUE_REWARD_RESULT _rewardResult)
	{
		AsDesignationManager.Instance.SendRequestReward = false;

		switch(_rewardResult.eResult)
		{
		case eRESULTCODE.eRESULT_SUCC:
			AsDesignationRankRewardManager.Instance.LastReceiveRewardRankPoint = _rewardResult.nAccrueRewardPoint;
			DesignationAccrueRewardResult();
			AsEventNotifyMgr.Instance.CenterNotify.AddMessage(AsTableManager.Instance.GetTbl_String(2730));
			break;
		case eRESULTCODE.eRESULT_FAIL:
			Debug.LogWarning("SubtitleAccrueRewardResult fail , accrue reward point : " + _rewardResult.nAccrueRewardPoint );
			AsEventNotifyMgr.Instance.CenterNotify.AddMessage(AsTableManager.Instance.GetTbl_String(1630));
			break;
		case eRESULTCODE.eRESULT_FAIL_IVNENTORY_FULL:
			AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(118),
			                             null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE);
			break;
		}
	}
Пример #2
0
	void SubtitleAccrueRewardResult( byte[] _packet)
	{
		body_SC_SUBTITLE_ACCRUE_REWARD_RESULT result = new body_SC_SUBTITLE_ACCRUE_REWARD_RESULT();
		result.PacketBytesToClass( _packet);
		
		AsDesignationRankRewardManager.Instance.Recv_SubtitleAccrueRewardResult (result);
	}