예제 #1
0
    void Update()
    {
        init       = _sceneBuilder.move;
        trajectory = _sceneBuilder.objTrajectory;

        if (init == true && !initialized)
        {
            model       = vehicle.GetComponent <VehicleModel>();
            initialized = true;
            if (trajectory != null)
            {
                model.SetTrajectory(new GameObjectWrapper(trajectory));
                drive();
            }
        }
    }