public void Action(LocationTaskDriver driver, ARWorldObject worldObject) { if (OnAction != null) { OnAction.Invoke(); } }
public void SetFocus(LocationTaskDriver driver, ARWorldObject worldObject, bool focus) { if (worldObject != null) { var task = driver.Task; if (focus) { m_guideData = new ARGuideData { Instructions = task.Title, Range = task.ActionRange, WorldObject = worldObject }; ARViewManager.Instance.SetGuide(m_guideData); var text = driver.IsTakeTask ? Localize.GetLocalizedString("ARAnnotation.TapToTake", "Tap to Collect") : (driver.IsGiveTask ? Localize.GetLocalizedString("ARAnnotation.TapToPut", "Tap to Put") : null); ARAnnotationViewController.Instance.AddTapAnnotation(worldObject, text); } else { if (m_guideData != null) { ARViewManager.Instance.ClearGuide(m_guideData); } ARAnnotationViewController.Instance.RemoveTapAnnotation(worldObject); } } }
public void HideTask(LocationTaskDriver driver, ARWorldObject worldObject) { if (m_guideData != null) { ARViewManager.Instance.ClearGuide(m_guideData); } ARAnnotationViewController.Instance.RemoveTapAnnotation(worldObject); }
public virtual void ActivateLocationTask(ResourceActivationContext context, LocationTask task) { IPlayerTaskDriver driver = null; if (CreateLocationTaskDriver != null) { driver = CreateLocationTaskDriver(context, task); } else { driver = new LocationTaskDriver(context, task); } ActivatePlayerTaskDriver(context, driver); }
protected LocationMinigameDriverBase(LocationTaskDriver taskDriver) { this.TaskDriver = taskDriver; }
public void Complete(LocationTaskDriver driver, ARWorldObject worldObject) { ARViewManager.Instance.SetTaskComplete(driver); }
public void ShowTask(LocationTaskDriver driver, ARWorldObject worldObject) { }
public ARCatcherMinigameDriver(LocationTaskDriver driver, ARCatcherMinigame minigame) : base(driver, minigame) { }
public DefaultLocationMinigameDriver(LocationTaskDriver driver) : base(driver) { }
protected LocationMinigameDriver(LocationTaskDriver taskDriver, T minigame) : base(taskDriver) { this.Minigame = minigame; }