create house types and populate the town

master
Jordan Orelli 5 years ago
parent ac3ba90cad
commit 30cb6f0fa1

Binary file not shown.

@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 6118d3d5a7df7e242a971bb305dfa4a7
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: No Name
2300000: //RootNode
3300000: //RootNode
4300000: Aframe
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 8b387e6ce55ed624081d9131b29c003f
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: No Name
2300000: //RootNode
3300000: //RootNode
4300000: Saltbox.001
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 0b41c2d4baec7ff4c8fde2a7660008a0
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: No Name
2300000: //RootNode
3300000: //RootNode
4300000: Saltbox
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

@ -10,9 +10,11 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 6840155025391068082} - component: {fileID: 6840155025391068082}
- component: {fileID: 5055085492565969357} - component: {fileID: 5055085492565969357}
- component: {fileID: 5320611298180310865}
- component: {fileID: 114186638872438842}
m_Layer: 0 m_Layer: 0
m_Name: Elbow m_Name: Elbow
m_TagString: Untagged m_TagString: Road
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -46,6 +48,32 @@ MeshCollider:
m_Convex: 0 m_Convex: 0
m_CookingOptions: 14 m_CookingOptions: 14
m_Mesh: {fileID: 4300000, guid: 144c3efc4bb2c5244b88790cdb6efa40, type: 3} m_Mesh: {fileID: 4300000, guid: 144c3efc4bb2c5244b88790cdb6efa40, type: 3}
--- !u!65 &5320611298180310865
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8619608736923509227}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 20, y: 10, z: 20}
m_Center: {x: 0, y: 5, z: 0}
--- !u!114 &114186638872438842
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8619608736923509227}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eb33c7c4902fb084b9a4312616f1285b, type: 3}
m_Name:
m_EditorClassIdentifier:
Location:
--- !u!1001 &5321725234150135665 --- !u!1001 &5321725234150135665
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -13,9 +13,10 @@ GameObject:
- component: {fileID: 6956701330587504882} - component: {fileID: 6956701330587504882}
- component: {fileID: 2954567574914083179} - component: {fileID: 2954567574914083179}
- component: {fileID: 114787737091386174} - component: {fileID: 114787737091386174}
- component: {fileID: 366682907183022674}
m_Layer: 0 m_Layer: 0
m_Name: Straight Road m_Name: Straight Road
m_TagString: Untagged m_TagString: Road
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -86,6 +87,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: eb33c7c4902fb084b9a4312616f1285b, type: 3} m_Script: {fileID: 11500000, guid: eb33c7c4902fb084b9a4312616f1285b, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
Location:
--- !u!65 &366682907183022674
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4352836557107626428}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 20, y: 10, z: 20}
m_Center: {x: 0, y: 5, z: 0}
--- !u!1001 &4692730903129939174 --- !u!1001 &4692730903129939174
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -13,9 +13,11 @@ GameObject:
- component: {fileID: 7209300624649069144} - component: {fileID: 7209300624649069144}
- component: {fileID: 1977089130014508995} - component: {fileID: 1977089130014508995}
- component: {fileID: 1099109948203725326} - component: {fileID: 1099109948203725326}
- component: {fileID: 65821357663402670}
- component: {fileID: 114384207052675842}
m_Layer: 0 m_Layer: 0
m_Name: T Intersection m_Name: T Intersection
m_TagString: Untagged m_TagString: Road
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -89,6 +91,32 @@ CapsuleCollider:
m_Height: 20 m_Height: 20
m_Direction: 1 m_Direction: 1
m_Center: {x: -10, y: 0, z: -10} m_Center: {x: -10, y: 0, z: -10}
--- !u!65 &65821357663402670
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7666524679484032064}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 20, y: 10, z: 20}
m_Center: {x: 0, y: 5, z: 0}
--- !u!114 &114384207052675842
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7666524679484032064}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eb33c7c4902fb084b9a4312616f1285b, type: 3}
m_Name:
m_EditorClassIdentifier:
Location:
--- !u!1001 &1948884478886915818 --- !u!1001 &1948884478886915818
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -14,9 +14,11 @@ GameObject:
- component: {fileID: 3418252045642099678} - component: {fileID: 3418252045642099678}
- component: {fileID: 4707819957722557513} - component: {fileID: 4707819957722557513}
- component: {fileID: 6689995198303457518} - component: {fileID: 6689995198303457518}
- component: {fileID: 8182374206388778679}
- component: {fileID: 114814010179181206}
m_Layer: 0 m_Layer: 0
m_Name: X Intersection m_Name: X Intersection
m_TagString: Untagged m_TagString: Road
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -105,6 +107,32 @@ CapsuleCollider:
m_Height: 20 m_Height: 20
m_Direction: 1 m_Direction: 1
m_Center: {x: -10, y: 0, z: -10} m_Center: {x: -10, y: 0, z: -10}
--- !u!65 &8182374206388778679
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8588678653500925376}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 20, y: 10, z: 20}
m_Center: {x: 0, y: 5, z: 0}
--- !u!114 &114814010179181206
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8588678653500925376}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eb33c7c4902fb084b9a4312616f1285b, type: 3}
m_Name:
m_EditorClassIdentifier:
Location:
--- !u!1001 &3141696459908493859 --- !u!1001 &3141696459908493859
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

@ -5,7 +5,10 @@ using UnityEngine;
public class DestinationController : MonoBehaviour public class DestinationController : MonoBehaviour
{ {
public string Address; public string Address;
[TextArea(15,20)]
public string Directions; public string Directions;
public GameObject visualModel; public GameObject visualModel;
private float period; private float period;

@ -30,11 +30,19 @@ public class HudController : MonoBehaviour
void Update() { void Update() {
scoreText.text = player.score.ToString(); scoreText.text = player.score.ToString();
if (player.destination) { if (player.destination) {
destinationText.text = player.destination.Address;
destinationBox.SetActive(true); destinationBox.SetActive(true);
directionsText.text = player.destination.Directions;
directionsBox.SetActive(true); directionsBox.SetActive(true);
} else { } else {
destinationBox.SetActive(false); destinationBox.SetActive(false);
directionsBox.SetActive(false); directionsBox.SetActive(false);
} }
if (player.location != "") {
locationText.text = player.location;
} else {
locationText.text = "(lost)";
}
} }
} }

@ -9,6 +9,7 @@ public class PlayerController : MonoBehaviour
public float maxSteeringAngle; public float maxSteeringAngle;
public GameObject indicator; public GameObject indicator;
public DestinationController destination; public DestinationController destination;
public string location;
public int score; public int score;
private PizzeriaController pizzeria; private PizzeriaController pizzeria;
@ -51,12 +52,19 @@ public class PlayerController : MonoBehaviour
return; return;
} }
if (other.gameObject == destination.gameObject) { if (destination != null && other.gameObject == destination.gameObject) {
destination = null; destination = null;
other.gameObject.SetActive(false); other.gameObject.SetActive(false);
score++; score++;
pizzeria.MakeAPizza(); pizzeria.MakeAPizza();
} }
if (other.gameObject.CompareTag("Road")) {
RoadController road = other.GetComponent<RoadController>();
if (road) {
location = road.Location;
}
}
} }
private void orientWheels() { private void orientWheels() {

@ -4,6 +4,8 @@ using UnityEngine;
public class RoadController : MonoBehaviour public class RoadController : MonoBehaviour
{ {
public string Location;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {

@ -10,6 +10,7 @@ TagManager:
- Destination - Destination
- Pizzeria - Pizzeria
- PizzaSpawnPoint - PizzaSpawnPoint
- Road
layers: layers:
- Default - Default
- TransparentFX - TransparentFX

Loading…
Cancel
Save