예제 #1
0
        /// <summary>Update method needs to be called regularly in order
        /// to process incoming and outgoing messages.
        /// </summary>
        ///
        public void Update(eBrainCloudUpdateType in_updateType = eBrainCloudUpdateType.ALL)
        {
            switch (in_updateType)
            {
            case eBrainCloudUpdateType.REST:
            {
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RTT:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RS:
            {
                if (_rsComms != null)
                {
                    _rsComms.Update();
                }
            }
            break;

            default:
            case eBrainCloudUpdateType.ALL:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
                if (_comms != null)
                {
                    _comms.Update();
                }
                if (_rsComms != null)
                {
                    _rsComms.Update();
                }
            }
            break;
            }
        }
예제 #2
0
        /// <summary>Update method needs to be called regularly in order
        /// to process incoming and outgoing messages.
        /// </summary>
        ///
        public void Update(eBrainCloudUpdateType in_updateType = eBrainCloudUpdateType.ALL)
        {
            //System.Diagnostics.Debug.WriteLine("WE'RE IN CLIENT UPDATE YOOOOOO!");            System.Diagnostics.Debug.WriteLine("WE'RE IN CLIENT UPDATE YOOOOOO!");
            switch (in_updateType)
            {
            case eBrainCloudUpdateType.REST:
            {
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RTT:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
            }
            break;

            default:
            case eBrainCloudUpdateType.ALL:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;
            }
        }