Ejemplo n.º 1
0
    private void OnEnable()
    {
        thisObject = (WaypointCreator)target;

        // Make sure the AstarPath object has been loaded
        AstarPath.FindAstarPath();

        AstarPath.active.Scan();

        thisObject.Initialize();
    }