Esempio n. 1
0
        private async Task <bool> MoveToNoFlight(Vector3 location)
        {
            var result = MoveResult.GeneratingPath;

            while (Core.Player.Location.Distance3D(location) > PathPrecision || result != MoveResult.ReachedDestination ||
                   result != MoveResult.Done)
            {
                generatingPath = true;
                result         = innerNavigator.MoveTo(location, "Temporary Waypoint");
                await Coroutine.Yield();
            }

            generatingPath = false;

            return(true);
        }