예제 #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;
 }