Пример #1
0
 private async Task <bool> EnteringExitPortal()
 {
     EnablePulse();
     if (await UsePortalCoroutine.UsePortal(_nextLevelPortalSNO, _prePortalWorldDynamicId))
     {
         State = States.OnNewRiftLevel;
         return(false);
     }
     return(false);
 }
Пример #2
0
 private async Task <bool> EnteringRift()
 {
     EnablePulse();
     if (_RiftType == RiftType.Nephalem)
     {
         if (!await UsePortalCoroutine.UsePortal(RiftData.RiftEntryPortalSNO, _prePortalWorldDynamicId))
         {
             return(false);
         }
     }
     else
     {
         if (!await UsePortalCoroutine.UsePortal(RiftData.GreaterRiftEntryPortalSNO, _prePortalWorldDynamicId))
         {
             return(false);
         }
     }
     State = States.OnNewRiftLevel;
     return(false);
 }
 private async Task <bool> Entering()
 {
     if (_objectiveLocation.Distance(AdvDia.MyPosition) > 22)
     {
         State = States.Moving;
         return(false);
     }
     if (!await UsePortalCoroutine.UsePortal(_portalActorId != 0 ? _portalActorId : _discoveredPortalActorId, _prePortalWorldDynamicId))
     {
         return(false);
     }
     if (AdvDia.CurrentWorldId != DestinationWorldId)
     {
         Logger.Debug("[Bounty] We are not where we are supposed to be.");
         State = States.Searching;
         return(false);
     }
     _discoveredPortalActorId = 0;
     SafeZerg.Instance.DisableZerg();
     State = States.Completed;
     return(false);
 }