예제 #1
0
    // 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;
    }
예제 #2
0
 void OnMouseUp()
 {
     ExitLaunching(EventManagerScript.GetMouseInWorldPosition());
 }