Example #1
0
 public static async Task <bool> UseWaypoint()
 {
     if (_townPortalCoroutine == null)
     {
         _townPortalCoroutine = new TownPortalCoroutine();
     }
     if (await _townPortalCoroutine.GetCoroutine())
     {
         _townPortalCoroutine = null;
         return(true);
     }
     return(false);
 }
        public static async Task<bool> UseWaypoint()
        {
            if (_townPortalCoroutine == null)
            {
                _townPortalCoroutine = new TownPortalCoroutine();

            }
            if (await _townPortalCoroutine.GetCoroutine())
            {
                _townPortalCoroutine = null;
                return true;
            }
            return false;
        }