Пример #1
0
        private void Start()
        {
            var async = CoroutineSequence.Start(this);

            async.Then(next =>
            {
                Hello();
                next();
            });
            async.WaitForSeconds(5);
            async.Then(next =>
            {
                World();
                next();
            }
                       );
        }
Пример #2
0
        public static CoroutineSequence Start(MonoBehaviour owner)
        {
            var async = new CoroutineSequence(owner);

            return(async);
        }