示例#1
0
        public static void BreakAllNonGlobalCoroutines()
        {
            var toBeRemoved = new List <int>();

            VeeUtils.ForEachInDictionary(_running_coroutines, (k, v) => {
                if (!v.isGlobal)
                {
                    toBeRemoved.Add(k);
                }
            });

            foreach (var id in toBeRemoved)
            {
                if (DebugMode)
                {
                    _breaked_coroutines.Add(id, _running_coroutines[id]);
                }
                _running_coroutines.Remove(id);
            }

            if (SceneScheduler.HasInstance)
            {
                SceneScheduler.Instance.StopAllCoroutines();
            }
        }
示例#2
0
        public static void BreakAllCoroutines()
        {
            if (DebugMode)
            {
                VeeUtils.ForEachInDictionary(_running_coroutines, (k, v) => { _breaked_coroutines.Add(k, v); });
            }

            _running_coroutines.Clear();
            if (SceneScheduler.HasInstance)
            {
                SceneScheduler.Instance.StopAllCoroutines();
            }
            GlobalScheduler.instance.StopAllCoroutines();
        }
 float CalcNextStep()
 {
     NextStep = VeeUtils.RandomFloat(MinStep, MaxStep);
     return(NextStep);
 }