示例#1
0
        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);
        }
示例#2
0
 void OnDestroy()
 {
     m_Instance = null;
 }
示例#3
0
 // Use this for initialization
 void Awake()
 {
     m_Instance = this;
 }