Exemple #1
0
    void Update()
    {
        if (!waypointRenderer)
        {
            waypointRenderer = GetComponent <WaypointRenderer>();
        }
        else
        {
            waypointRenderer.FindLineRenderer();
            waypointRenderer.InitalizeLists();
            waypointRenderer.FindChildrenAndWaypointAnchors();
            waypointRenderer.DrawQuadraticCurve();
        }

        if (!trackManager)
        {
            trackManager = GameObject.Find("TrackManager").GetComponent <TrackManager>();
        }
        else
        {
            trackManager.FindWayPoints();
            trackManager.LightRangeUpdate();
            trackManager.WaypointSoundLevel();
            //trackManager.AddSound();
        }
    }