コード例 #1
0
        public static Coroutine WithDelay(
            float seconds, Action action, MonoBehaviour behaviour = null, TimeScale timeScale = TimeScale.Unity
            )
        {
            behaviour = behaviour ?? ASync.behaviour;
            var enumerator = WithDelayEnumerator(seconds, action, timeScale);

            return(new Coroutine(behaviour, enumerator));
        }
コード例 #2
0
ファイル: ASync.cs プロジェクト: essess5/tlplib
        public static Coroutine WithDelay(
            Duration duration, Action action, ITimeContext timeContext,
            MonoBehaviour behaviour = null
            )
        {
            behaviour = behaviour ? behaviour : ASync.behaviour;
            var enumerator = WithDelayEnumerator(duration, action, timeContext);

            return(new UnityCoroutine(behaviour, enumerator));
        }