private void OnEnable()
 {
     _stream.Add(UniRxUtility.ObserveInputKeyDown(KeyCode.F1, () =>
     {
         _isEnable = !_isEnable;
     }, gameObject));
 }
Example #2
0
        public void RepeatSend <T>(string address, int repeat, float delay, List <T> values)
        {
            if (!_isInit)
            {
                return;
            }

            if (delay <= 0)
            {
                delay = 1 / 60f;
            }

            if (repeat <= 0)
            {
                repeat = 1;
            }

            UniRxUtility.StartCoroutine(() => DelaySendEnumrator(address, repeat, delay, values), () =>
            {
                Debug.Log("Delay Call Executed : Address = " + address);
            });
        }