Beispiel #1
0
        public void S_C_RobotGunFireNotify(CMD_SC_GF_ROBOT_GUN_FIRE_NOTIFY _notify)
        {
            int _npcID = (int)_notify.gsNpcId;
            int _chair = (int)_notify.gsRobotChair;

            if (CanonCtrl.Instance.singleCanonList[_chair] != null)
            {
                CanonCtrl.Instance.singleCanonList[_chair].S_C_RobotGunFireNotify(_npcID);
            }
        }
        private bool DidRobotGunFireNotify(int wHandleCode, byte[] wByteBuffer, int wDataSize)
        {
            int dataLen = wByteBuffer.Length;

            if (dataLen < wDataSize)
            {
                Debug.LogError("User join in data Error!!");
                return(false);
            }

            CMD_SC_GF_ROBOT_GUN_FIRE_NOTIFY robotGunFireNotify = GameConvert.ByteToStruct <CMD_SC_GF_ROBOT_GUN_FIRE_NOTIFY>(wByteBuffer, wByteBuffer.Length);

            if (onRobotGunFireNotifyEvent != null)
            {
                onRobotGunFireNotifyEvent(robotGunFireNotify);
            }
            return(true);
        }