示例#1
0
        public void UpdateSubscribeAddresses()
        {
            var addresses = new List <Address> {
                Address
            };

            var currentAvatarState = States.Instance.CurrentAvatarState;

            if (!(currentAvatarState is null))
            {
                var slotAddresses = currentAvatarState.combinationSlotAddresses.ToArray();
                addresses.AddRange(slotAddresses);
            }

            Debug.Log($"Subscribing addresses: {string.Join(", ", addresses)}");
            _service.SetAddressesToSubscribe(addresses.Select(addr => addr.ToByteArray()));
        }