private void ReceiveUserEventNotify( byte[] _packet) { Debug.Log( "ReceiveUserEventNotify"); body_SC_USER_EVENT_NOTIFY notify = new body_SC_USER_EVENT_NOTIFY(); notify.PacketBytesToClass( _packet); /* AsEmotionManager.Instance.Event_Condition_GetRareItem(notify);//$yde if( (eUSEREVENT_ITEM_GETTYPE)notify.nValue_1 == eUSEREVENT_ITEM_GETTYPE.eUSEREVENT_ITEM_GETTYPE_RULLET) { AsUserEntity userEntity = AsUserInfo.Instance.GetCurrentUserEntity(); if( null != userEntity) { string userName = userEntity.GetProperty<string>( eComponentProperty.NAME); if( userName.CompareTo( AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( notify.szCharName))) == 0) { AsEventNotifyMgr.Instance.SetRandItemNotify( notify); return; } } AsEventNotifyMgr.Instance.ReceiveUserEventNotify( notify); if( AsUserInfo.Instance.SavedCharStat.uniqKey_ != notify.nValue_2) { AsUserEntity _entity = AsEntityManager.Instance.GetUserEntityByUniqueId( (uint)notify.nValue_2); if( null != _entity) { Debug.Log("other user"); } } else { Debug.Log("Player"); } } else { AsEventNotifyMgr.Instance.ReceiveUserEventNotify( notify); } */ if( eUSEREVENTTYPE.eUSEREVENTTYPE_ITEM == (eUSEREVENTTYPE)notify.eType) { AsEmotionManager.Instance.Event_Condition_GetRareItem(notify);//$yde if( (eUSEREVENT_ITEM_GETTYPE)notify.nValue_1 == eUSEREVENT_ITEM_GETTYPE.eUSEREVENT_ITEM_GETTYPE_RULLET) { AsUserEntity userEntity = AsUserInfo.Instance.GetCurrentUserEntity(); if( null != userEntity) { string userName = userEntity.GetProperty<string>( eComponentProperty.NAME); if( userName.CompareTo( AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( notify.szCharName))) == 0) { AsEventNotifyMgr.Instance.SetRandItemNotify( notify); return; } } AsEventNotifyMgr.Instance.ReceiveUserEventNotify( notify); if( AsUserInfo.Instance.SavedCharStat.uniqKey_ != notify.nValue_2) { AsUserEntity _entity = AsEntityManager.Instance.GetUserEntityByUniqueId( (uint)notify.nValue_2); if( null != _entity) { Debug.Log("other user"); } } else { Debug.Log("Player"); } } else { AsEventNotifyMgr.Instance.ReceiveUserEventNotify( notify); } } else if( eUSEREVENTTYPE.eUSEREVENTTYPE_ARENA == (eUSEREVENTTYPE)notify.eType) { if( eUSEREVENT_ARENATYPE.eUSEREVENT_ARENATYPE_LEAVE == (eUSEREVENT_ARENATYPE)notify.nValue_1) { //string strMsg = string.Format( AsTableManager.Instance.GetTbl_String( 2109), AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( notify.szCharName))); //AsEventNotifyMgr.Instance.CenterNotify.AddGMMessage( strMsg); AsPvpManager.Instance.ShowKillMessage( notify.nValue_2, 0); if( notify.nValue_2 == AsUserInfo.Instance.SavedCharStat.uniqKey_) { AsPvpManager.Instance.SetBackGroundDelayTime( notify.nServerTime); } } else if( eUSEREVENT_ARENATYPE.eUSEREVENT_ARENATYPE_DEATH == (eUSEREVENT_ARENATYPE)notify.nValue_1) { AsPvpManager.Instance.ShowKillMessage( notify.nValue_2, notify.nValue_3); } } }