// Update is called once per frame void Update() { PathScript potentialPath = null; if (isLaunching) { UpdateLaunching(); potentialPath = GetPotentiallyQualifiedPath(EventManagerScript.GetMouseInWorldPosition()); if (potentialPath != null) { potentialPath.DisplayVisualHint(transform); } } if (this.potentialPath != null && this.potentialPath != potentialPath) { this.potentialPath.StopVisualHint(); } this.potentialPath = potentialPath; }
void OnMouseUp() { ExitLaunching(EventManagerScript.GetMouseInWorldPosition()); }