public void Open( body1_SC_ITEM_TIME_EXPIRE dataRoot ) { if( null == dataRoot ) { Debug.LogError("AsExpireItemView::Open()[ body1_SC_ITEM_TIME_EXPIRE == datas ]"); return; } listItems.ClearList( true); AddList(dataRoot); listItems.ScrollToItem( 0, 0.0f); }
public void AddList( body1_SC_ITEM_TIME_EXPIRE dataRoot ) { foreach( sITEM _data in dataRoot.datas ) { if( null == goResItem ) { Debug.LogError("AsExpireItemView::Open()[ null == goResItem ] "); break; } UIListItem item = listItems.CreateItem( goResItem ) as UIListItem; AsExpireItem _script = item.gameObject.GetComponent<AsExpireItem>(); if( null == _script ) { Debug.LogError("AsExpireItemView::Open()[ null == AsExpireItem ] " ); continue; } _script.Open(_data); } listItems.ScrollToItem( 0, 0.0f); }
private void ReceiveItemTimeExpire( byte[] _packet) { body1_SC_ITEM_TIME_EXPIRE data = new body1_SC_ITEM_TIME_EXPIRE(); data.PacketBytesToClass( _packet); if( null == AsHudDlgMgr.Instance) { Debug.LogError( "AsCommonProcess_2::ReceiveItemTimeExpire() [ null == AsHudDlgMgr.Instance ] "); return; } AsHudDlgMgr.Instance.ReceiveItemTimeExpire( data); AsPStoreManager.Instance.ExpireProcess( data);//$yde }
public void ExpireProcess(body1_SC_ITEM_TIME_EXPIRE _expire) { if( null == _expire || null == _expire.datas) return; if( null == m_PStoreItemUsedSlot || null == m_PStoreItemUsedSlot.sItem ) return; foreach(sITEM item in _expire.datas) { if(m_PStoreItemUsedSlot.sItem.nItemTableIdx == item.nItemTableIdx) { switch(m_StoreState) { case ePStoreState.User_Standby: m_PStoreItemUsedSlot = null; AsHudDlgMgr.Instance.ClosePStore(); return; // break; } } } }