コード例 #1
0
 private void OnEnable()
 {
     _stream.Add(UniRxUtility.ObserveInputKeyDown(KeyCode.F1, () =>
     {
         _isEnable = !_isEnable;
     }, gameObject));
 }
コード例 #2
0
ファイル: OSCWrapper.cs プロジェクト: nakagawa1-10/mvp_study
        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);
            });
        }