From d07ac61a080c6e5255d13d0a7ed15e7d13062cad Mon Sep 17 00:00:00 2001 From: JoshuaReason Date: Sat, 26 Jan 2019 22:10:12 +1100 Subject: [PATCH] Did map generation --- Assets/Materials/TestPlaneColor 1.mat | 76 ++++ Assets/Materials/TestPlaneColor 1.mat.meta | 8 + Assets/Materials/TestPlaneColor 2.mat | 76 ++++ Assets/Materials/TestPlaneColor 2.mat.meta | 8 + Assets/Materials/TestPlaneColor 3.mat | 76 ++++ Assets/Materials/TestPlaneColor 3.mat.meta | 8 + Assets/Materials/TestPlaneColor 4.mat | 76 ++++ Assets/Materials/TestPlaneColor 4.mat.meta | 8 + Assets/Prefabs/MapPieces.meta | 8 + Assets/Prefabs/MapPieces/Terrain #1.prefab | 272 +++++++++++++ .../Prefabs/MapPieces/Terrain #1.prefab.meta | 8 + Assets/Prefabs/MapPieces/Terrain #2.prefab | 186 +++++++++ .../Prefabs/MapPieces/Terrain #2.prefab.meta | 8 + Assets/Prefabs/MapPieces/Terrain #3.prefab | 274 ++++++++++++++ .../Prefabs/MapPieces/Terrain #3.prefab.meta | 8 + Assets/Prefabs/MapPieces/Terrain #4.prefab | 358 ++++++++++++++++++ .../Prefabs/MapPieces/Terrain #4.prefab.meta | 8 + Assets/Scipts/LandMarkGenerater.cs | 23 ++ Assets/Scipts/LandMarkGenerater.cs.meta | 11 + Assets/Scipts/Map.cs | 286 +++++++++----- 20 files changed, 1684 insertions(+), 102 deletions(-) create mode 100644 Assets/Materials/TestPlaneColor 1.mat create mode 100644 Assets/Materials/TestPlaneColor 1.mat.meta create mode 100644 Assets/Materials/TestPlaneColor 2.mat create mode 100644 Assets/Materials/TestPlaneColor 2.mat.meta create mode 100644 Assets/Materials/TestPlaneColor 3.mat create mode 100644 Assets/Materials/TestPlaneColor 3.mat.meta create mode 100644 Assets/Materials/TestPlaneColor 4.mat create mode 100644 Assets/Materials/TestPlaneColor 4.mat.meta create mode 100644 Assets/Prefabs/MapPieces.meta create mode 100644 Assets/Prefabs/MapPieces/Terrain #1.prefab create mode 100644 Assets/Prefabs/MapPieces/Terrain #1.prefab.meta create mode 100644 Assets/Prefabs/MapPieces/Terrain #2.prefab create mode 100644 Assets/Prefabs/MapPieces/Terrain #2.prefab.meta create mode 100644 Assets/Prefabs/MapPieces/Terrain #3.prefab create mode 100644 Assets/Prefabs/MapPieces/Terrain #3.prefab.meta create mode 100644 Assets/Prefabs/MapPieces/Terrain #4.prefab create mode 100644 Assets/Prefabs/MapPieces/Terrain #4.prefab.meta create mode 100644 Assets/Scipts/LandMarkGenerater.cs create mode 100644 Assets/Scipts/LandMarkGenerater.cs.meta diff --git a/Assets/Materials/TestPlaneColor 1.mat b/Assets/Materials/TestPlaneColor 1.mat new file mode 100644 index 0000000..fa48b1b --- /dev/null +++ b/Assets/Materials/TestPlaneColor 1.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: TestPlaneColor 1 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.9245283, g: 0.30291417, b: 0.16135636, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Materials/TestPlaneColor 1.mat.meta b/Assets/Materials/TestPlaneColor 1.mat.meta new file mode 100644 index 0000000..889b301 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 1.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: dd37df60f91baa0408f02607c5b610b1 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Materials/TestPlaneColor 2.mat b/Assets/Materials/TestPlaneColor 2.mat new file mode 100644 index 0000000..ad35c74 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 2.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: TestPlaneColor 2 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.9245283, g: 0.30291417, b: 0.16135636, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Materials/TestPlaneColor 2.mat.meta b/Assets/Materials/TestPlaneColor 2.mat.meta new file mode 100644 index 0000000..6d96757 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 2.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d709b9e7e560dee4ba550092abb27e22 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Materials/TestPlaneColor 3.mat b/Assets/Materials/TestPlaneColor 3.mat new file mode 100644 index 0000000..ad35c74 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 3.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: TestPlaneColor 2 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.9245283, g: 0.30291417, b: 0.16135636, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Materials/TestPlaneColor 3.mat.meta b/Assets/Materials/TestPlaneColor 3.mat.meta new file mode 100644 index 0000000..781dc21 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 3.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1bc7be5bc7a07c741b4f269f325a6349 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Materials/TestPlaneColor 4.mat b/Assets/Materials/TestPlaneColor 4.mat new file mode 100644 index 0000000..ec346a5 --- /dev/null +++ b/Assets/Materials/TestPlaneColor 4.mat @@ -0,0 +1,76 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: TestPlaneColor + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 0.9245283, g: 0.30291417, b: 0.16135636, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Materials/TestPlaneColor 4.mat.meta b/Assets/Materials/TestPlaneColor 4.mat.meta new file mode 100644 index 0000000..0cecdbd --- /dev/null +++ b/Assets/Materials/TestPlaneColor 4.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fabd36f8fad6d8340a6d7416650e0e48 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/MapPieces.meta b/Assets/Prefabs/MapPieces.meta new file mode 100644 index 0000000..1cbeec5 --- /dev/null +++ b/Assets/Prefabs/MapPieces.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a82aa1db198ef5b4ebf9403eafc21003 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/MapPieces/Terrain #1.prefab b/Assets/Prefabs/MapPieces/Terrain #1.prefab new file mode 100644 index 0000000..d3f6ef7 --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #1.prefab @@ -0,0 +1,272 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 0} + m_RootGameObject: {fileID: 1037902089443026} + m_IsPrefabAsset: 1 +--- !u!1 &1037902089443026 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4306881944623748} + - component: {fileID: 33721218860246446} + - component: {fileID: 23460482945882612} + - component: {fileID: 64175158368207744} + m_Layer: 0 + m_Name: 'Terrain #1' + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1226323126665206 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4047974917423330} + - component: {fileID: 33842851680801666} + - component: {fileID: 23489916477739304} + - component: {fileID: 65332649396041232} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1590063340561440 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4071776350974492} + - component: {fileID: 33602813031382284} + - component: {fileID: 23302901145111354} + - component: {fileID: 65303889438215630} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4047974917423330 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1226323126665206} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -2.01, y: 0, z: -2.61} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4306881944623748} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!4 &4071776350974492 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1590063340561440} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -2.61} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4306881944623748} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!4 &4306881944623748 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1037902089443026} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 100, y: 0, z: 0} + m_LocalScale: {x: 10, y: 10, z: 10} + m_Children: + - {fileID: 4071776350974492} + - {fileID: 4047974917423330} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23302901145111354 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1590063340561440} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23460482945882612 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1037902089443026} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 2100000, guid: dd37df60f91baa0408f02607c5b610b1, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23489916477739304 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1226323126665206} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33602813031382284 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1590063340561440} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33721218860246446 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1037902089443026} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33842851680801666 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1226323126665206} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!64 &64175158368207744 +MeshCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1037902089443026} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &65303889438215630 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1590063340561440} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!65 &65332649396041232 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1226323126665206} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/MapPieces/Terrain #1.prefab.meta b/Assets/Prefabs/MapPieces/Terrain #1.prefab.meta new file mode 100644 index 0000000..19958db --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #1.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: edafc40251a98d444beffa17d305ec95 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/MapPieces/Terrain #2.prefab b/Assets/Prefabs/MapPieces/Terrain #2.prefab new file mode 100644 index 0000000..0311226 --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #2.prefab @@ -0,0 +1,186 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 0} + m_RootGameObject: {fileID: 1015644583666204} + m_IsPrefabAsset: 1 +--- !u!1 &1008120199590204 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4172887208157348} + - component: {fileID: 33376085744577170} + - component: {fileID: 23601568855517848} + - component: {fileID: 135639775998747240} + m_Layer: 0 + m_Name: Sphere + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1015644583666204 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4404511122646172} + - component: {fileID: 33034696149318790} + - component: {fileID: 23960064464487784} + - component: {fileID: 64556864399190826} + m_Layer: 0 + m_Name: 'Terrain #2' + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4172887208157348 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1008120199590204} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -2.3} + m_LocalScale: {x: 1.1724, y: 1.1724, z: 2.3562894} + m_Children: [] + m_Father: {fileID: 4404511122646172} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!4 &4404511122646172 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1015644583666204} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 100} + m_LocalScale: {x: 10, y: 10, z: 10} + m_Children: + - {fileID: 4172887208157348} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23601568855517848 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1008120199590204} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23960064464487784 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1015644583666204} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 2100000, guid: d709b9e7e560dee4ba550092abb27e22, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33034696149318790 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1015644583666204} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33376085744577170 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1008120199590204} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!64 &64556864399190826 +MeshCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1015644583666204} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!135 &135639775998747240 +SphereCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1008120199590204} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/MapPieces/Terrain #2.prefab.meta b/Assets/Prefabs/MapPieces/Terrain #2.prefab.meta new file mode 100644 index 0000000..e53bfcc --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #2.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d87c84df9fc89d84791299f0b5c57e78 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/MapPieces/Terrain #3.prefab b/Assets/Prefabs/MapPieces/Terrain #3.prefab new file mode 100644 index 0000000..ea0b8ba --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #3.prefab @@ -0,0 +1,274 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 0} + m_RootGameObject: {fileID: 1897406671895228} + m_IsPrefabAsset: 1 +--- !u!1 &1474994077670012 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4002348629944688} + - component: {fileID: 33479541482904584} + - component: {fileID: 23492418479940058} + - component: {fileID: 136293519201192600} + m_Layer: 0 + m_Name: Capsule (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1610164016170962 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4105383298622804} + - component: {fileID: 33796806375284424} + - component: {fileID: 23289603198180170} + - component: {fileID: 136160225119734624} + m_Layer: 0 + m_Name: Capsule + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1897406671895228 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4126828912386938} + - component: {fileID: 33502246186151914} + - component: {fileID: 23257448529126930} + - component: {fileID: 64416337363388710} + m_Layer: 0 + m_Name: 'Terrain #3' + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4002348629944688 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1474994077670012} + m_LocalRotation: {x: 0.00029947702, y: -0.9313951, z: 0.3640089, w: 0.00076674647} + m_LocalPosition: {x: 0, y: 0, z: 1.14} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4126828912386938} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 42.693, y: -179.906, z: 0} +--- !u!4 &4105383298622804 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1610164016170962} + m_LocalRotation: {x: 0.36400822, y: -0, z: -0, w: 0.9313957} + m_LocalPosition: {x: 0, y: 0, z: -1.45} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4126828912386938} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 42.693, y: 0, z: 0} +--- !u!4 &4126828912386938 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1897406671895228} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 10, y: 10, z: 10} + m_Children: + - {fileID: 4105383298622804} + - {fileID: 4002348629944688} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23257448529126930 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1897406671895228} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 2100000, guid: 1bc7be5bc7a07c741b4f269f325a6349, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23289603198180170 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1610164016170962} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23492418479940058 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1474994077670012} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33479541482904584 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1474994077670012} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33502246186151914 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1897406671895228} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33796806375284424 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1610164016170962} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!64 &64416337363388710 +MeshCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1897406671895228} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!136 &136160225119734624 +CapsuleCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1610164016170962} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!136 &136293519201192600 +CapsuleCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1474994077670012} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/MapPieces/Terrain #3.prefab.meta b/Assets/Prefabs/MapPieces/Terrain #3.prefab.meta new file mode 100644 index 0000000..c0af735 --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #3.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a901b42a231c73b439f0035c7a146f37 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/MapPieces/Terrain #4.prefab b/Assets/Prefabs/MapPieces/Terrain #4.prefab new file mode 100644 index 0000000..3601f9e --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #4.prefab @@ -0,0 +1,358 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 0} + m_RootGameObject: {fileID: 1433609631272550} + m_IsPrefabAsset: 1 +--- !u!1 &1433609631272550 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4404084383031166} + - component: {fileID: 33004649618022594} + - component: {fileID: 23821791181871078} + - component: {fileID: 64882413182870900} + m_Layer: 0 + m_Name: 'Terrain #4' + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1522867287158160 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4728302739020120} + - component: {fileID: 33054619564688368} + - component: {fileID: 23227391033942472} + - component: {fileID: 65704417695038948} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1776060813924696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4053979072194888} + - component: {fileID: 33893046347957796} + - component: {fileID: 23741972824477106} + - component: {fileID: 65748196242710544} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &1812816240993000 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4470045073166406} + - component: {fileID: 33064912409710008} + - component: {fileID: 23227875989782972} + - component: {fileID: 65252159211807304} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4053979072194888 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1776060813924696} + m_LocalRotation: {x: 0.3961321, y: 0.13486464, z: -0.386996, w: 0.8216599} + m_LocalPosition: {x: -2.17, y: 0, z: -3.4} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4404084383031166} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 49.056004, y: -7.451, z: -53.844} +--- !u!4 &4404084383031166 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1433609631272550} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 100, y: 0, z: 100} + m_LocalScale: {x: 10, y: 10, z: 10} + m_Children: + - {fileID: 4470045073166406} + - {fileID: 4728302739020120} + - {fileID: 4053979072194888} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!4 &4470045073166406 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1812816240993000} + m_LocalRotation: {x: 0.39613208, y: 0.13486464, z: -0.38699597, w: 0.8216599} + m_LocalPosition: {x: 1.55, y: 0, z: -1.33} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4404084383031166} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 49.056004, y: -7.451, z: -53.844} +--- !u!4 &4728302739020120 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1522867287158160} + m_LocalRotation: {x: 0.3961321, y: 0.13486464, z: -0.386996, w: 0.8216599} + m_LocalPosition: {x: -0.77, y: 0, z: 1.7} + m_LocalScale: {x: 0.99999994, y: 0.99999994, z: 1} + m_Children: [] + m_Father: {fileID: 4404084383031166} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 49.056004, y: -7.451, z: -53.844} +--- !u!23 &23227391033942472 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1522867287158160} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23227875989782972 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1812816240993000} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23741972824477106 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1776060813924696} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!23 &23821791181871078 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1433609631272550} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 2100000, guid: fabd36f8fad6d8340a6d7416650e0e48, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33004649618022594 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1433609631272550} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33054619564688368 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1522867287158160} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33064912409710008 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1812816240993000} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &33893046347957796 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1776060813924696} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!64 &64882413182870900 +MeshCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1433609631272550} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &65252159211807304 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1812816240993000} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!65 &65704417695038948 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1522867287158160} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!65 &65748196242710544 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1776060813924696} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/MapPieces/Terrain #4.prefab.meta b/Assets/Prefabs/MapPieces/Terrain #4.prefab.meta new file mode 100644 index 0000000..2b8ed8b --- /dev/null +++ b/Assets/Prefabs/MapPieces/Terrain #4.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 86a9d1949bf1a8c43bd26a88ef59b5a0 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scipts/LandMarkGenerater.cs b/Assets/Scipts/LandMarkGenerater.cs new file mode 100644 index 0000000..791a3b1 --- /dev/null +++ b/Assets/Scipts/LandMarkGenerater.cs @@ -0,0 +1,23 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class LandMarkGenerater : MonoBehaviour { + + public Transform[] LandMarkLocations; + + + public void AddHotSpots(GameObject[] hotSpots) + { + foreach(Transform location in LandMarkLocations) + { + int randIndex = Random.Range(0, hotSpots.Length); + float RandomRotation = Random.Range(0, 3) * 90; + + GameObject temp = Instantiate(hotSpots[randIndex], transform); + temp.transform.position = location.position; + temp.transform.Rotate(Vector3.up, RandomRotation); + temp.name = "LandMark"; + } + } +} diff --git a/Assets/Scipts/LandMarkGenerater.cs.meta b/Assets/Scipts/LandMarkGenerater.cs.meta new file mode 100644 index 0000000..6971fcc --- /dev/null +++ b/Assets/Scipts/LandMarkGenerater.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 65d360cf634d02645a8d488aa3a75b4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index a0e4ed2..c9a6ca2 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using UnityEngine; -public class Map : MonoBehaviour { +public class Map : MonoBehaviour +{ GameObject LocalPlayer; List Players = new List(); @@ -10,10 +11,8 @@ public class Map : MonoBehaviour { public GameObject[] Tiles; public List Landmarks; - public GameObject[] MapGrid; - public GameObject[] WorldWrapGrid; - - + public int TileSize = 100; + public Vector2 MapDimensions; //Minimum and maximum values for the map public float minX; @@ -21,12 +20,6 @@ public class Map : MonoBehaviour { public float minZ; public float maxZ; - /* - public Camera TopCam; - public Camera BotCam; - public Camera LeftCam; - public Camera RightCam; - */ #region StartupFunctions private void Start() @@ -36,8 +29,8 @@ public class Map : MonoBehaviour { foreach (GameObject curPlayer in Multiplayer.PlayersManager.Instance.RemotePlayers.Values) { Players.Add(curPlayer); - } - //GenerateMap(); + } + GenerateTiles(); CreateDummys(); } @@ -45,7 +38,7 @@ public class Map : MonoBehaviour { //Create dummy players for the world wrapping void CreateDummys() { - + foreach (GameObject Player in Players) { Player PS = Player.GetComponent(); @@ -59,35 +52,124 @@ public class Map : MonoBehaviour { } - void GenerateMap() + public void GenerateTiles() { - GameObject[] gameTiles = new GameObject[4]; - for (int i = 0; i < 4; i++) + float HalfSize = TileSize / 2; + Vector3 startPoint = new Vector3(-(MapDimensions.x * HalfSize), 0.0f, -(MapDimensions.y * HalfSize)); + + + for (int x = 0; x < MapDimensions.x; x++) { - int rand = Random.Range(0, Tiles.Length); - GameObject tile = Instantiate(Tiles[rand], MapGrid[i].transform.position, Quaternion.identity); - PopulateTile(tile.GetComponent()); - gameTiles[i] = tile; + for (int z = 0; z < MapDimensions.y; z++) + { + int randIndex = Random.Range(0, Tiles.Length); + float RandomRotation = Random.Range(0, 4) * 90; + Vector3 position = startPoint + new Vector3(TileSize * x + HalfSize, 0.0f, TileSize * z + HalfSize); + Debug.Log(position); + GameObject Tile = Instantiate(Tiles[randIndex]); + Tile.transform.position = position; + Tile.transform.Rotate(Vector3.up, RandomRotation); + Tile.name = "Tile [" + x + "," + z + "]"; + + if (x == 0) + { + Vector3 newPos = position; + newPos.x += TileSize * MapDimensions.x; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (z == 0) + { + Vector3 newPos = position; + newPos.z += TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (x == 0 && z == 0) + { + Vector3 newPos = position; + newPos.x += TileSize * MapDimensions.x; + newPos.z += TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (x == MapDimensions.x - 1) + { + Vector3 newPos = position; + newPos.x -= TileSize * MapDimensions.x; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (z == MapDimensions.y - 1) + { + Vector3 newPos = position; + newPos.z -= TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (x == MapDimensions.x - 1 && z == MapDimensions.y - 1) + { + Vector3 newPos = position; + newPos.x -= TileSize * MapDimensions.x; + newPos.z -= TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (x == 0 && z == MapDimensions.y - 1) + { + Vector3 newPos = position; + newPos.x += TileSize * MapDimensions.x; + newPos.z -= TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + + if (x == MapDimensions.x - 1 && z == 0) + { + Vector3 newPos = position; + newPos.x -= TileSize * MapDimensions.x; + newPos.z += TileSize * MapDimensions.y; + + GameObject MirrorTile = Instantiate(Tiles[randIndex]); + MirrorTile.transform.position = newPos; + MirrorTile.transform.Rotate(Vector3.up, RandomRotation); + MirrorTile.name = Tile.name + "(Mirror)"; + } + } } - //Create the fake tiles for the world wrapping (This is done super poorly and quickly, don't judge me :) - Instantiate(gameTiles[0], WorldWrapGrid[6].transform); - Instantiate(gameTiles[0], WorldWrapGrid[10].transform); - Instantiate(gameTiles[0], WorldWrapGrid[12].transform); - Instantiate(gameTiles[1], WorldWrapGrid[5].transform); - Instantiate(gameTiles[1], WorldWrapGrid[9].transform); - Instantiate(gameTiles[1], WorldWrapGrid[11].transform); - Instantiate(gameTiles[2], WorldWrapGrid[2].transform); - Instantiate(gameTiles[2], WorldWrapGrid[4].transform); - Instantiate(gameTiles[2], WorldWrapGrid[8].transform); - Instantiate(gameTiles[3], WorldWrapGrid[1].transform); - Instantiate(gameTiles[3], WorldWrapGrid[3].transform); - Instantiate(gameTiles[3], WorldWrapGrid[7].transform); } //Populate the tile with landmarks void PopulateTile(Tile tile) { - foreach(GameObject LP in tile.LandmarkPoints) + foreach (GameObject LP in tile.LandmarkPoints) { if (Landmarks.Count > 0) { @@ -127,72 +209,72 @@ public class Map : MonoBehaviour { } - //EXTRA STUFF, PLEASE IGNORE - - /* - * //IN UPDATE - HandleCameraMovement(TopCam, true); - HandleCameraMovement(BotCam, true); - HandleCameraMovement(LeftCam, false); - HandleCameraMovement(RightCam, false); - HandleCamSizing(); - */ - - /* - /// - /// - /// - /// The camera to move - /// Do we move in the X axis or the Z? - void HandleCameraMovement(Camera Cam, bool Xmove) - { - if (Xmove == true) - { - Cam.transform.position = new Vector3(LocalPlayer.transform.position.x, Cam.transform.position.y, Cam.transform.position.z); - } - else - { - Cam.transform.position = new Vector3(Cam.transform.position.x, Cam.transform.position.y, LocalPlayer.transform.position.z); - } - } +//EXTRA STUFF, PLEASE IGNORE - void HandleCamSizing() - { - Transform PT = LocalPlayer.transform; - if (PT.position.x > maxX - camWidth) - { - float dif = ((maxX - PT.position.x) / camWidth) / 2; - SetCam(dif, 0, RightCam); - } - else if (PT.position.x < minX + camWidth) - { - float dif = ((minX - PT.position.x) / camWidth) / 2; - SetCam(dif, 0, LeftCam); - } - else - { - SetCam(1, 1, RightCam); - SetCam(1, 1, LeftCam); - } - if (PT.position.z > maxZ - camHeight) - { - float dif = ((maxZ - PT.position.z) / camHeight) / 2; - SetCam(0, dif, TopCam); - } - else if (PT.position.x < + camHeight) - { - float dif = ((minZ - PT.position.z) / camHeight) / 2; - SetCam(0, dif, BotCam); - } - else - { - SetCam(1, 1, RightCam); - SetCam(1, 1, LeftCam); - } - } +/* + * //IN UPDATE + HandleCameraMovement(TopCam, true); + HandleCameraMovement(BotCam, true); + HandleCameraMovement(LeftCam, false); + HandleCameraMovement(RightCam, false); + HandleCamSizing(); + */ - void SetCam(float x, float y, Camera cam) - { - cam.rect = new Rect(x, y, 1, 1); - } - */ \ No newline at end of file +/* +/// +/// +/// +/// The camera to move +/// Do we move in the X axis or the Z? +void HandleCameraMovement(Camera Cam, bool Xmove) +{ + if (Xmove == true) + { + Cam.transform.position = new Vector3(LocalPlayer.transform.position.x, Cam.transform.position.y, Cam.transform.position.z); + } + else + { + Cam.transform.position = new Vector3(Cam.transform.position.x, Cam.transform.position.y, LocalPlayer.transform.position.z); + } +} + +void HandleCamSizing() +{ + Transform PT = LocalPlayer.transform; + if (PT.position.x > maxX - camWidth) + { + float dif = ((maxX - PT.position.x) / camWidth) / 2; + SetCam(dif, 0, RightCam); + } + else if (PT.position.x < minX + camWidth) + { + float dif = ((minX - PT.position.x) / camWidth) / 2; + SetCam(dif, 0, LeftCam); + } + else + { + SetCam(1, 1, RightCam); + SetCam(1, 1, LeftCam); + } + if (PT.position.z > maxZ - camHeight) + { + float dif = ((maxZ - PT.position.z) / camHeight) / 2; + SetCam(0, dif, TopCam); + } + else if (PT.position.x < + camHeight) + { + float dif = ((minZ - PT.position.z) / camHeight) / 2; + SetCam(0, dif, BotCam); + } + else + { + SetCam(1, 1, RightCam); + SetCam(1, 1, LeftCam); + } +} + +void SetCam(float x, float y, Camera cam) +{ + cam.rect = new Rect(x, y, 1, 1); +} +*/