Exemplo n.º 1
0
    //
    public void RequestPath()
    {
        RaycastHit hit = MouseInput.getMouseRaycastHit();

        if (hit.collider)
        {
            moving = true;

            GameObject targetTile = hit.collider.gameObject;
            targetPos   = targetTile.transform.position;
            targetPos.y = 1.5f;
        }
        // updatePath = 0;
        pathfinding.AddPathRequest(this);
    }