Exemple #1
0
        public DoOnUpdate(Action updateAction)
        {
            if (updateAction == null)
            {
                throw new ArgumentNullException("updateAction");
            }
            _updateAction = updateAction;

            GlobalCoroutineRunner.RunCoroutine(DoEveryFrame());
        }
        protected Coroutine RunCoroutine(IEnumerator coroutine)
        {
            if (coroutine == null)
            {
                throw new ArgumentNullException("coroutine");
            }

            _isCoroutineStarted = true;

            return(_isGlobal ? GlobalCoroutineRunner.RunCoroutine(coroutine) : LocalCoroutineRunner.RunCoroutine(coroutine));
        }