Exemple #1
0
 private async Task <bool> Clearing()
 {
     if (PluginTime.CurrentMillisecond - _startTime > _seconds * 1000)
     {
         _isDone = true;
         return(false);
     }
     //if (ActorFinder.FindNearestHostileUnitInRadius(_center, _radius) == Vector3.Zero)
     //{
     //    if (!await _waitCoroutine.GetCoroutine()) return false;
     //    _waitCoroutine.Reset();
     //}
     if (!await ClearAreaCoroutine.Clear(_center, _radius, true))
     {
         return(false);
     }
     if (BountyData.IsAvailable)
     {
         _radius = _increaseRadius ? (_radius < 80 ? _radius + 1 : _radius) : _radius;
         State   = States.MovingBack;
         return(false);
     }
     _isDone = true;
     State   = States.Completed;
     return(false);
 }
Exemple #2
0
 private async Task <bool> PreClearingGizmoArea()
 {
     SafeZerg.Instance.DisableZerg();
     EnablePulse();
     if (!await ClearAreaCoroutine.Clear(_currentGizmo.Position, 70))
     {
         return(false);
     }
     _interactionCoroutine = new InteractionCoroutine(GizmoSNO, new TimeSpan(0, 0, 7), new TimeSpan(0, 0, 1));
     State = States.InteractingWithGizmo;
     return(false);
 }
Exemple #3
0
 private async Task <bool> ClearingGizmoArea()
 {
     SafeZerg.Instance.DisableZerg();
     EnablePulse();
     if (!_currentGizmo.Untargateble)
     {
         State = States.MovingToGizmo;
         return(false);
     }
     if (!await ClearAreaCoroutine.Clear(_currentGizmo.Position, 90, true))
     {
         return(false);
     }
     State = States.SearchingForGizmo;
     return(false);
 }