public void Open( body2_SC_EVENT_LIST _data ) { textTitle.Text = _data.szTitle; textText.Text = _data.szContent; textOpenDay.Text = GetTime(_data.tStartTime) + "~" + GetTime(_data.tEndTime); btnEventWeb.SetInputDelegate( EventBtnDelegate); }
public void OpenEventDlg( body2_SC_EVENT_LIST _data) { ClearEventDlg(); GameObject obTempTooltip = ResourceLoad.CreateGameObject( eventTooltipPath, tooltipOnePosition.transform); if( null == obTempTooltip) return; m_tooltipEventDlg = obTempTooltip.GetComponent<TooltipEventDlg>(); if( null == m_tooltipEventDlg) { Debug.LogError( "TooltipMgr::OpenEventDlg()[ not find Component( TooltipEventDlg) ] path : " + eventTooltipPath); DestroyObject( obTempTooltip); return; } m_tooltipEventDlg.Open( _data); }
public new void PacketBytesToClass( byte[] data) { Type infotype = this.GetType(); FieldInfo headerinfo = null; int index = ParsePacketHeader( data); // nBody2Cnt byte[] nCnt = new byte[ sizeof( Int32)]; headerinfo = infotype.GetField( "nBody2Cnt", BINDING_FLAGS_PIG); Buffer.BlockCopy( data, index, nCnt, 0, sizeof( Int32)); headerinfo.SetValue( this, BitConverter.ToInt32( nCnt, 0)); index += sizeof( Int32); if( 0 < nBody2Cnt) { body = new body2_SC_EVENT_LIST[ nBody2Cnt]; for( int i = 0; i < nBody2Cnt; i++) { body[i] = new body2_SC_EVENT_LIST(); index = body[i].PacketBytesToClass( data, index); } } }