public uint Execute(PacketDistributed ipacket) { GC_SHOWPKNOTICE packet = (GC_SHOWPKNOTICE)ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic if (PKNoticeLogic.Instance() != null) { PKNoticeLogic.Instance().PlayPkNotice(9.0f); } return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
void OnDestroy() { m_Instance = null; }
// Use this for initialization void Awake() { m_Instance = this; }