public void BasicFlatRideSettings(FlatRide flatRideScript, string displayName, float price, float excitement, float intensity, float nausea, int x, int z)
 {
     _sceneryObjects.Add(flatRideScript);
     AssetManager.Instance.registerObject(flatRideScript);
     flatRideScript.fenceGO    = AssetManager.Instance.rideFenceGO;
     flatRideScript.entranceGO = AssetManager.Instance.rideEntranceGO;
     flatRideScript.exitGO     = AssetManager.Instance.rideExitGO;
     typeof(FlatRide).GetField("entranceExitBuilderGO", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).SetValue(flatRideScript, AssetManager.Instance.flatRideEntranceExitBuilderGO);
     flatRideScript.price            = price;
     flatRideScript.excitementRating = excitement;
     flatRideScript.intensityRating  = intensity;
     flatRideScript.nauseaRating     = nausea;
     flatRideScript.setDisplayName(displayName);
     flatRideScript.xSize = x;
     flatRideScript.zSize = z;
 }
 public void BasicFlatRideSettings(FlatRide flatRide, string name, float price, float excitement, float intensity, float nausea, int x, int Z)
 {
     _sceneryObjects.Add(flatRide);
     flatRide.setFenceStyle(AssetManager.Instance.rideFenceStyles.rideFenceStyles[0].identifier); //= AssetManager.Instance.rideFenceGO;
     flatRide.entranceGO            = AssetManager.Instance.attractionEntranceGO;
     flatRide.exitGO                = AssetManager.Instance.attractionExitGO;
     flatRide.categoryTag           = "Attractions/Flat Ride";
     flatRide.entranceExitBuilderGO = AssetManager.Instance.flatRideEntranceExitBuilderGO;
     flatRide.price            = price;
     flatRide.excitementRating = excitement;
     flatRide.intensityRating  = intensity;
     flatRide.nauseaRating     = nausea;
     flatRide.setDisplayName(name);
     flatRide.xSize = x;
     flatRide.zSize = Z;
 }
 public void BasicFlatRideSettings(FlatRide flatRide, string name, float price, float excitement, float intensity, float nausea, int x, int Z)
 {
     _sceneryObjects.Add(flatRide);
     flatRide.setFenceStyle(AssetManager.Instance.rideFenceStyles.rideFenceStyles[0].identifier); //= AssetManager.Instance.rideFenceGO;
     flatRide.entranceGO = AssetManager.Instance.attractionEntranceGO;
     flatRide.exitGO = AssetManager.Instance.attractionExitGO;
     flatRide.categoryTag = "Attractions/Flat Ride";
     flatRide.entranceExitBuilderGO = AssetManager.Instance.flatRideEntranceExitBuilderGO;
     flatRide.price = price;
     flatRide.excitementRating = excitement;
     flatRide.intensityRating = intensity;
     flatRide.nauseaRating = nausea;
     flatRide.setDisplayName(name);
     flatRide.xSize = x;
     flatRide.zSize = Z;
 }
Example #4
0
    public void BasicFlatRideSettings(FlatRide FlatRideScript, string DisplayName, float price, float excitement, float intensity, float nausea, int x, int Z)
    {
        _sceneryObjects.Add(FlatRideScript);
        AssetManager.Instance.registerObject(FlatRideScript);
        FlatRideScript.setFenceStyle(AssetManager.Instance.rideFenceStyles.rideFenceStyles[0].identifier); //= AssetManager.Instance.rideFenceGO;
        FlatRideScript.entranceGO = AssetManager.Instance.attractionEntranceGO;
        FlatRideScript.exitGO = AssetManager.Instance.attractionExitGO;
        FlatRideScript.entranceExitBuilderGO = AssetManager.Instance.flatRideEntranceExitBuilderGO;
        FlatRideScript.price = price;
        FlatRideScript.categoryTag = "Attractions/Flat Ride";
        FlatRideScript.excitementRating = excitement;
        FlatRideScript.intensityRating = intensity;
        FlatRideScript.nauseaRating = nausea;
        FlatRideScript.setDisplayName(DisplayName);
        FlatRideScript.xSize = x;
        FlatRideScript.zSize = Z;
       

        
    }