Beispiel #1
0
        private IEnumerator FollowPathRoutine()
        {
            if (nodes != null)
            {
                foreach (var node in nodes)
                {
                    mover.MoveTo(node.Position3D);
                    yield return(new WaitForSeconds(1.0f));
                }
            }

            nodes = null;
        }