# HG changeset patch # User Kazuma Takeda # Date 1484865026 -32400 # Node ID 3fefb9f9025de0d35cb5d3c14d54f6ba04476cf7 # Parent bbab930748c449cf82877d03c9aab5c889e50b68 put Attribute class. diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/BenchMarkTest.cs --- a/Assets/Application/BenchMarkTest.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -using UnityEngine; -using System.Collections; -using JungleDB; - -public class BenchMarkTest : MonoBehaviour { - - public static string key = "KEY"; - public static string indexKey = "INDEXKEY"; - // Use this for initialization - void Start () { - System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); - sw.Start (); - Jungle jungle = new DefaultJungle(new NullJournal(), "hoge", new DefaultTreeEditor(new DefaultTraverser())); - jungle.createNewTree("TestTree"); - JungleTree tree = jungle.getTreeByName("TestTree"); - JungleTreeEditor editor = tree.getTreeEditor(); - editor = createTree(editor, 0, 3, new DefaultNodePath()); - Either either = editor.commit(); - DebugCommon.Assert (either.isA (), "[Error]" + either.a()); - sw.Stop (); - print ("[Time]" + sw.Elapsed); - } - - public JungleTreeEditor createTree(JungleTreeEditor editor, int _curY, int _maxHeight, NodePath path) { - - if (_curY == _maxHeight) { - return editor; - } - for (int i = 0; i < 3; i++) { - Either either = editor.addNewChildAt (path, _curY); - DebugCommon.Assert (either.isA (), "Error"); - editor = either.b (); - string value = path.add (_curY).ToString (); - either = editor.putAttribute (path.add (_curY), key, System.Text.Encoding.ASCII.GetBytes (value)); - DebugCommon.Assert (either.isA (), "Error"); - editor = either.b (); - string value2 = value + "+ index"; - either = editor.putAttribute (path.add (_curY), indexKey, System.Text.Encoding.ASCII.GetBytes (value2)); - DebugCommon.Assert (either.isA (), "Error"); - editor = either.b (); - editor = createTree (editor, _curY + 1, _maxHeight, path); - } - return editor; - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/BenchMarkTest.cs.meta --- a/Assets/Application/BenchMarkTest.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8c3220ff9547d411e8b3344d575295d0 -timeCreated: 1478674034 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Materials/Test/Pointer.mat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Materials/Test/Pointer.mat Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,127 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_Name: Pointer + m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: _EMISSION + m_LightmapFlags: 1 + m_CustomRenderQueue: -1 + stringTagMap: {} + m_SavedProperties: + serializedVersion: 2 + m_TexEnvs: + - first: + name: _BumpMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _DetailAlbedoMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _DetailMask + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _DetailNormalMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _EmissionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _MainTex + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _MetallicGlossMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _OcclusionMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - first: + name: _ParallaxMap + second: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - first: + name: _BumpScale + second: 1 + - first: + name: _Cutoff + second: 0.5 + - first: + name: _DetailNormalMapScale + second: 1 + - first: + name: _DstBlend + second: 0 + - first: + name: _GlossMapScale + second: 1 + - first: + name: _Glossiness + second: 0.5 + - first: + name: _GlossyReflections + second: 1 + - first: + name: _Metallic + second: 0 + - first: + name: _Mode + second: 0 + - first: + name: _OcclusionStrength + second: 1 + - first: + name: _Parallax + second: 0.02 + - first: + name: _SmoothnessTextureChannel + second: 0 + - first: + name: _SpecularHighlights + second: 1 + - first: + name: _SrcBlend + second: 1 + - first: + name: _UVSec + second: 0 + - first: + name: _ZWrite + second: 1 + m_Colors: + - first: + name: _Color + second: {r: 0, g: 1, b: 0.9586208, a: 1} + - first: + name: _EmissionColor + second: {r: 0, g: 0, b: 0, a: 1} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Materials/Test/Pointer.mat.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Materials/Test/Pointer.mat.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da11eb843840540d69c06aa4d0ded273 +timeCreated: 1484848164 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scenes/Test/MeshCut.unity --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scenes/Test/MeshCut.unity Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,518 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 7 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 7 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 4 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_DirectLightInLightProbes: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_LightingDataAsset: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + accuratePlacement: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &8989774 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 8989778} + - component: {fileID: 8989777} + - component: {fileID: 8989776} + - component: {fileID: 8989775} + m_Layer: 0 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!23 &8989775 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 8989774} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + 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: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!64 &8989776 +MeshCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 8989774} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Convex: 0 + m_InflateMesh: 0 + m_SkinWidth: 0.01 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!33 &8989777 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 8989774} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &8989778 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 8989774} + m_LocalRotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068} + m_LocalPosition: {x: 1.714, y: 0, z: 0} + m_LocalScale: {x: 0.078297734, y: 0.07829771, z: 0.07829771} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90} +--- !u!1 &1407789387 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1407789389} + - component: {fileID: 1407789388} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &1407789388 +Light: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1407789387} + m_Enabled: 1 + serializedVersion: 7 + m_Type: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 0.87 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_Lightmapping: 4 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &1407789389 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1407789387} + m_LocalRotation: {x: 0.93670285, y: -0, z: 0.35012555, w: 0} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 180, y: -40.99, z: 0} +--- !u!1 &1863321094 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1863321099} + - component: {fileID: 1863321098} + - component: {fileID: 1863321097} + - component: {fileID: 1863321096} + - component: {fileID: 1863321095} + - component: {fileID: 1863321100} + m_Layer: 0 + m_Name: Cutter + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!120 &1863321095 +LineRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_MotionVectors: 0 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_Materials: + - {fileID: 2100000, guid: da11eb843840540d69c06aa4d0ded273, 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_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_Positions: + - {x: 0, y: 0, z: 0} + - {x: 10, y: 0, z: 0} + m_Parameters: + serializedVersion: 2 + widthMultiplier: 0.01 + widthCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 2 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + colorGradient: + key0: + serializedVersion: 2 + rgba: 4294967295 + key1: + serializedVersion: 2 + rgba: 4294967295 + key2: + serializedVersion: 2 + rgba: 0 + key3: + serializedVersion: 2 + rgba: 0 + key4: + serializedVersion: 2 + rgba: 0 + key5: + serializedVersion: 2 + rgba: 0 + key6: + serializedVersion: 2 + rgba: 0 + key7: + serializedVersion: 2 + rgba: 0 + ctime0: 0 + ctime1: 65535 + ctime2: 0 + ctime3: 0 + ctime4: 0 + ctime5: 0 + ctime6: 0 + ctime7: 0 + atime0: 0 + atime1: 65535 + atime2: 0 + atime3: 0 + atime4: 0 + atime5: 0 + atime6: 0 + atime7: 0 + m_Mode: 0 + m_NumColorKeys: 2 + m_NumAlphaKeys: 2 + numCornerVertices: 0 + numCapVertices: 0 + alignment: 0 + textureMode: 0 + m_UseWorldSpace: 1 +--- !u!23 &1863321096 +MeshRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + 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: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingOrder: 0 +--- !u!65 &1863321097 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + 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!33 &1863321098 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1863321099 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.17350763, y: 0.17350763, z: 0.17350763} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0} +--- !u!114 &1863321100 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1863321094} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2c879bdaa73d546cdbda39576bbdd96a, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &2106651433 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 2106651438} + - component: {fileID: 2106651437} + - component: {fileID: 2106651436} + - component: {fileID: 2106651435} + - component: {fileID: 2106651434} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &2106651434 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2106651433} + m_Enabled: 1 +--- !u!124 &2106651435 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2106651433} + m_Enabled: 1 +--- !u!92 &2106651436 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2106651433} + m_Enabled: 1 +--- !u!20 &2106651437 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2106651433} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 + m_StereoMirrorMode: 0 +--- !u!4 &2106651438 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2106651433} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scenes/Test/MeshCut.unity.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scenes/Test/MeshCut.unity.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: efcaf3760bc4148e9af1698a9e377f1a +timeCreated: 1484847947 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ChildObject.cs --- a/Assets/Application/Scripts/ChildObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; - -public class ChildObject : MonoBehaviour { - - public ParentObject Parent; - public GameObject Value; - public NodePath Path; - public Dictionary dic = new Dictionary(); - - public ChildObject (ParentObject parent, GameObject value, NodePath path) { - this.Parent = parent; - this.Value = value; - this.Path = path; - } - - public void GetComponent () { - Component[] comps = this.Value.GetComponents(); - foreach (Component component in comps) { - Debug.Log(component.GetType().ToString()); - dic.Add (component.GetType().ToString(), component); - } - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ChildObject.cs.meta --- a/Assets/Application/Scripts/ChildObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2ef61e4e590984e4795981e606e77db5 -timeCreated: 1478587815 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ConvertObject.cs --- a/Assets/Application/Scripts/ConvertObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -using UnityEngine; -using System.Collections; -using System; -using System.Runtime.Serialization.Formatters.Binary; -using System.IO; -[Serializable] -public class ConvertObject : MonoBehaviour { - - public static byte[] Convert (object target) { - BinaryFormatter bf = new BinaryFormatter(); - MemoryStream ms = new MemoryStream(); - bf.Serialize(ms, target); - byte[] myByteArray = ms.ToArray(); - return myByteArray; - } - - public static object UnConvert(byte[] target) { - using (var memStream = new MemoryStream()) - { - var binForm = new BinaryFormatter(); - memStream.Write(target, 0, target.Length); - memStream.Seek(0, SeekOrigin.Begin); - var obj = binForm.Deserialize(memStream); - return obj; - } - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ConvertObject.cs.meta --- a/Assets/Application/Scripts/ConvertObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f7fd35791c1034f51871065c4525e4a9 -timeCreated: 1478450159 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/DeathZone.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/DeathZone.cs Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,33 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class DeathZone : MonoBehaviour { + + private GameObject target; + private Vector3 firstPoint = new Vector3(0.5f, 2f, 0.5f); + + public delegate void HitCallback (int n); + public HitCallback hitcallback; + + public void SetHitCallback (HitCallback hc) { + this.hitcallback = hc; + } + + private void Start () { + target = GameObject.FindGameObjectWithTag ("Player"); + } + + private void Update () { + Vector3 pos = target.transform.position; + this.transform.position = new Vector3 (pos.x, this.transform.position.y, pos.z); + } + + private void OnTriggerEnter (Collider col) { + if (col.tag == "Player") { + target.transform.position = firstPoint; + if (hitcallback != null) + hitcallback (1); + } + } +} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/DeathZone.cs.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/DeathZone.cs.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0f3722794bb8475dbc4389b5fb1c15d +timeCreated: 1484446456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Item.cs --- a/Assets/Application/Scripts/Item.cs Wed Jan 18 22:00:24 2017 +0900 +++ b/Assets/Application/Scripts/Item.cs Fri Jan 20 07:30:26 2017 +0900 @@ -11,20 +11,27 @@ private int nowBroken = 2; public int indexID = 0; public int itemID = 1; + public string ColorCode = ""; private Jungle jungle; + public void SetItem (ItemInfo item, int index) { + this.Broken = item.Broken; + nowBroken = Broken; + Type = item.Type; + itemID = item.itemID; + indexID = index; + ColorCode = item.ColorCode; + SetColor (this.ColorCode); + } - public void SetItem (int broken, string type, string itemid, int id) { + public void SetItem (int broken, string type, string item_id, int index, string code) { this.Broken = broken; nowBroken = Broken; Type = type; - itemID = Convert.ToInt32(itemid); - indexID = id; - } - - - private void Start () { + itemID = Convert.ToInt32(item_id); + indexID = index; + SetColor (code); } public void SetPosition (Vector3 pos) { @@ -32,6 +39,12 @@ // print ("Set (" + pos.x + ", " + pos.y + ", " + pos.z + ")"); } + public void SetColor (string code) { + Color color; + ColorUtility.TryParseHtmlString(code, out color); + this.GetComponent ().material.color = color; + } + public void Delete() { if (nowBroken == 0) { Destroy (this.gameObject); diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ItemCanvas.cs --- a/Assets/Application/Scripts/ItemCanvas.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -using UnityEngine; -using System.Collections; -using UnityEngine.UI; - -public class ItemCanvas : MonoBehaviour { - public GameObject ItemImage; - private Text[] itemText = new Text[3]; - - public void Start () { - for (int i = 0; i < 3; i++) { - itemText [i] = this.transform.GetChild (i).gameObject.GetComponentInChildren(); - } - Player.Instance.SetCallback (ChangeCount); - } - public void ChangeCount (int sand, int wood, int glass) { - itemText [0].text = sand.ToString (); - itemText [1].text = wood.ToString (); - itemText [2].text = glass.ToString (); - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ItemCanvas.cs.meta --- a/Assets/Application/Scripts/ItemCanvas.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 43d609e9694854408bb1979ce39e9bc4 -timeCreated: 1478500886 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ItemInfo.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/ItemInfo.cs Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ItemInfo { + + public string Type; + public int Broken = 2; + private int nowBroken = 2; + public int indexID = 0; + public int itemID = 1; + public string ColorCode = ""; + + public ItemInfo (int item_id, int broken, string type, string code) { + itemID = item_id; + this.Broken = broken; + nowBroken = Broken; + Type = type; + ColorCode = code; + } +} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ItemInfo.cs.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/ItemInfo.cs.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e2feeabde4c94cc5a42dad5a04c43e9 +timeCreated: 1484863090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module.meta --- a/Assets/Application/Scripts/Module.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ab9b968d3adb243fdad42cf266226efa -folderAsset: yes -timeCreated: 1478719221 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ChildObject.cs --- a/Assets/Application/Scripts/Module/ChildObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; - -public class ChildObject : MonoBehaviour { - - public ParentObject Parent; - public GameObject Value; - public NodePath Path; - public Dictionary dic = new Dictionary(); - - public ChildObject (ParentObject parent, GameObject value, NodePath path) { - this.Parent = parent; - this.Value = value; - this.Path = path; - } - - public void GetComponent () { - Component[] comps = this.Value.GetComponents(); - foreach (Component component in comps) { - Debug.Log(component.GetType().ToString()); - dic.Add (component.GetType().ToString(), component); - } - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ChildObject.cs.meta --- a/Assets/Application/Scripts/Module/ChildObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2ef61e4e590984e4795981e606e77db5 -timeCreated: 1478587815 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ConvertObject.cs --- a/Assets/Application/Scripts/Module/ConvertObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -using UnityEngine; -using System.Collections; -using System; -using System.Runtime.Serialization.Formatters.Binary; -using System.Runtime.Serialization; -using System.IO; -[Serializable] -public class ConvertObject : MonoBehaviour { - - public static byte[] Convert (object target) { - IFormatter formatter = new BinaryFormatter(); - MemoryStream ms = new MemoryStream(); - formatter.Serialize(ms, target); - byte[] myByteArray = ms.ToArray(); - return myByteArray; - } - - public static object UnConvert(byte[] target) { - using (var memStream = new MemoryStream()) - { - var binForm = new BinaryFormatter(); - memStream.Write(target, 0, target.Length); - memStream.Seek(0, SeekOrigin.Begin); - var obj = binForm.Deserialize(memStream); - return obj; - } - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ConvertObject.cs.meta --- a/Assets/Application/Scripts/Module/ConvertObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f7fd35791c1034f51871065c4525e4a9 -timeCreated: 1478450159 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ParentObject.cs --- a/Assets/Application/Scripts/Module/ParentObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -public class ParentObject : MonoBehaviour { - - public GameObject Value; - public NodePath Path; - public Dictionary dic = new Dictionary(); - - public ParentObject (GameObject value, NodePath path) { - this.Value = value; - this.Path = path; - GetComponent (); - Logs (); - } - - public void GetComponent () { - Component[] comps = this.Value.GetComponents(); - foreach (Component component in comps) { - if (component.GetType ().ToString () != "UnityEngine.Transform") { - Debug.Log (component.GetType ().ToString ()); - dic.Add (component.GetType ().ToString (), component); - } - } - } - - public void Logs () { - string s = "<"; - foreach (int num in Path) { - s += num + ","; - } - s += ">"; - print (s); - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Module/ParentObject.cs.meta --- a/Assets/Application/Scripts/Module/ParentObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 977fdfa4a9f894f42a675c4f6542c04b -timeCreated: 1478588350 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ParentObject.cs --- a/Assets/Application/Scripts/ParentObject.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -public class ParentObject : MonoBehaviour { - - public GameObject Value; - public NodePath Path; - public Dictionary dic = new Dictionary(); - - public ParentObject (GameObject value, NodePath path) { - this.Value = value; - this.Path = path; - GetComponent (); - Logs (); - } - - public void GetComponent () { - Component[] comps = this.Value.GetComponents(); - foreach (Component component in comps) { - Debug.Log(component.GetType().ToString()); - dic.Add (component.GetType().ToString(), component); - } - } - - public void Logs () { - string s = "<"; - foreach (int num in Path) { - s += num + ","; - } - s += ">"; - print (s); - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/ParentObject.cs.meta --- a/Assets/Application/Scripts/ParentObject.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 977fdfa4a9f894f42a675c4f6542c04b -timeCreated: 1478588350 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/RenderingTestManager.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/RenderingTestManager.cs Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using JungleDB; +using System.Text; + +public class RenderingTestManager : MonoBehaviour { + + // Use this for initialization + void Start () { + Jungle jungle = new DefaultJungle (null, "Game", new DefaultTreeEditor(new DefaultTraverser())); + JungleTree tree = jungle.createNewTree ("Scene"); + NodePath root = new DefaultNodePath (); + + JungleTreeEditor edt = tree.getTreeEditor (); + + edt = edt.addNewChildAt (root, 0).b (); + } + + +} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/RenderingTestManager.cs.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/RenderingTestManager.cs.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e454b26a5556c418ab34083f7730f388 +timeCreated: 1484480773 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/SaveData.cs --- a/Assets/Application/Scripts/SaveData.cs Wed Jan 18 22:00:24 2017 +0900 +++ b/Assets/Application/Scripts/SaveData.cs Fri Jan 20 07:30:26 2017 +0900 @@ -74,9 +74,8 @@ } else { node = either.b (); print (key); - byte[] target = node.getAttributes ().get (key); - var obj = ConvertObject.UnConvert (target); - print (obj); + object target = node.getAttributes ().get (key); + print (target); } } diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Stage.cs --- a/Assets/Application/Scripts/Stage.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class Stage : MonoBehaviour { - - public Type Attribute; - - public enum Type { - SAND, - WOOD, - GRASS - }; - - public void SetPosition (Vector3 pos) { - this.transform.position = pos; - print ("Set (" + pos.x + ", " + pos.y + ", " + pos.z + ")"); - } - - public void Delete() { - Destroy (this.gameObject); - } - -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Stage.cs.meta --- a/Assets/Application/Scripts/Stage.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2dac166f15533485ba17767ebef4407b -timeCreated: 1478076842 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/StageManager.cs --- a/Assets/Application/Scripts/StageManager.cs Wed Jan 18 22:00:24 2017 +0900 +++ b/Assets/Application/Scripts/StageManager.cs Fri Jan 20 07:30:26 2017 +0900 @@ -92,15 +92,11 @@ GameObject item = Resources.Load ("Prefabs/" + type + "/Box"); GameObject obj = Instantiate (item); - obj.GetComponent ().SetItem (Convert.ToInt32 (broken), subType, itemID, TotalIndex); + obj.GetComponent ().SetItem (Convert.ToInt32 (broken), subType, itemID, TotalIndex, color_code); obj.transform.position = new Vector3 (v.x, v.y, v.z); obj.transform.SetParent (baseStage.transform); obj.GetComponent ().SetCreateTreeNode (); - Color color = Color.black; - ColorUtility.TryParseHtmlString(color_code, out color);//草っぽい色 - obj.GetComponent ().material.color = color; - AddTotalIndex (); } @@ -177,14 +173,12 @@ TreeNode item_node = getItem (node, item_id); Attributes attr = item_node.getAttributes (); - string subType = attr.getString ("Type"); - string broken = attr.getString ("Broken"); - string itemID = attr.getString ("ID"); - string color_code = attr.getString ("Color"); +// string subType = attr.getString ("Type"); +// string broken = attr.getString ("Broken"); +// string color_code = attr.getString ("Color"); - cube.GetComponent ().SetItem (Convert.ToInt32 (broken), subType, item_id.ToString(), TotalIndex); + ItemInfo item = attr.get("ItemInfo"); - ColorUtility.TryParseHtmlString(color_code, out color);//草っぽい色 - cube.GetComponent ().material.color = color; + cube.GetComponent ().SetItem (item, TotalIndex); } } diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Test/MeshTest.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/Test/MeshTest.cs Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,47 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class MeshTest : MonoBehaviour { + + private LineRenderer pointer; + private Mesh targetMesh; + private Vector3 max; + + // Use this for initialization + void Start () { + pointer = this.GetComponent (); + pointer.numPositions = 2; + } + + // Update is called once per frame + void Update () { + this.pointer.SetPosition (0, this.transform.position); + this.pointer.SetPosition (1, this.transform.forward * 10); + RaycastHit hit; + if (Physics.Raycast (transform.position, this.transform.forward * 10, out hit)) { + Mesh hitMesh = hit.transform.GetComponent ().mesh; + if(targetMesh == null || targetMesh != hitMesh) + setMesh (hitMesh); + + Vector3 localPoint = hit.transform.InverseTransformPoint (hit.point); + this.pointer.SetPosition (1, hit.point); + } + } + + public void setMesh (Mesh m) { + targetMesh = m; + float max_y = 0f; + float max_x = 0f; + foreach (Vector3 v in m.vertices) { + + if (v.x >= max_x) + max_x = v.x; + + if (v.z >= max_y) + max_y = v.z; + } + print ("max (" + max_x + ", " + max_y + ")"); + max = new Vector3 (max_x, max_y); + } +} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Test/MeshTest.cs.meta --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Assets/Application/Scripts/Test/MeshTest.cs.meta Fri Jan 20 07:30:26 2017 +0900 @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c879bdaa73d546cdbda39576bbdd96a +timeCreated: 1484847841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Application/Scripts/Test/SaveDataTest.cs --- a/Assets/Application/Scripts/Test/SaveDataTest.cs Wed Jan 18 22:00:24 2017 +0900 +++ b/Assets/Application/Scripts/Test/SaveDataTest.cs Fri Jan 20 07:30:26 2017 +0900 @@ -111,41 +111,33 @@ JungleTree tree = jungle.createNewTree ("ItemTree"); JungleTreeEditor edt = tree.getTreeEditor (); - edt = edt.putAttribute (rootPath, "TreeName", Encoding.UTF8.GetBytes ("Item")).b (); + edt = edt.putAttribute (rootPath, "TreeName", "Item").b (); edt = edt.addNewChildAt (rootPath, 0).b (); - edt = edt.putAttribute ("Category", Encoding.UTF8.GetBytes ("Box")).b (); + edt = edt.putAttribute ("Category", "Box").b (); edt = edt.addNewChildAt (rootPath, 1).b (); - edt = edt.putAttribute ("Category", Encoding.UTF8.GetBytes ("Food")).b (); + edt = edt.putAttribute ("Category", "Food").b (); NodePath path = rootPath.add(0); edt = edt.addNewChildAt (path, 0).b (); - edt = edt.putAttribute ("ID", Encoding.UTF8.GetBytes ("1")).b (); - edt = edt.putAttribute ("Type", Encoding.UTF8.GetBytes ("Grass")).b (); - edt = edt.putAttribute ("Broken", Encoding.UTF8.GetBytes ("2")).b (); - edt = edt.putAttribute ("Color", Encoding.UTF8.GetBytes ("#019540FF")).b (); + + ItemInfo item_info = new ItemInfo (1, 2, "Grass", "#019540FF"); + edt = edt.putAttribute (item_info).b (); edt = edt.addNewChildAt (path, 1).b (); - edt = edt.putAttribute ("ID", Encoding.UTF8.GetBytes ("2")).b (); - edt = edt.putAttribute ("Type", Encoding.UTF8.GetBytes ("Wood")).b (); - edt = edt.putAttribute ("Broken", Encoding.UTF8.GetBytes ("4")).b (); - edt = edt.putAttribute ("Color", Encoding.UTF8.GetBytes ("#7F3C01FF")).b (); - + item_info = new ItemInfo (2, 4, "Wood", "#7F3C01FF"); + edt = edt.putAttribute (item_info).b (); edt = edt.addNewChildAt (path, 2).b (); - edt = edt.putAttribute ("ID", Encoding.UTF8.GetBytes ("3")).b (); - edt = edt.putAttribute ("Type", Encoding.UTF8.GetBytes ("Sand")).b (); - edt = edt.putAttribute ("Broken", Encoding.UTF8.GetBytes ("1")).b (); - edt = edt.putAttribute ("Color", Encoding.UTF8.GetBytes ("#D4500EFF")).b (); + item_info = new ItemInfo (3, 1, "Sand", "#D4500EFF"); + edt = edt.putAttribute (item_info).b (); edt = edt.addNewChildAt (path, 3).b (); - edt = edt.putAttribute ("ID", Encoding.UTF8.GetBytes ("4")).b (); - edt = edt.putAttribute ("Type", Encoding.UTF8.GetBytes ("Water")).b (); - edt = edt.putAttribute ("Broken", Encoding.UTF8.GetBytes ("5")).b (); - edt = edt.putAttribute ("Color", Encoding.UTF8.GetBytes ("#2432ADFF")).b (); + item_info = new ItemInfo (4, 5, "Water", "#2432ADFF"); + edt = edt.putAttribute (item_info).b (); edt.commit (); StageManager.Instance.Init (); @@ -156,15 +148,15 @@ JungleTreeEditor edt = tree.getTreeEditor (); edt = edt.addNewChildAt (rootPath, 0).b (); - edt = edt.putAttribute ("NodeName", Encoding.UTF8.GetBytes ("Player")).b (); + edt = edt.putAttribute ("NodeName", "Player").b (); NodePath playerpath = rootPath.add (0); edt = edt.addNewChildAt (playerpath, 0).b(); - edt = edt.putAttribute ("NodeName", Encoding.UTF8.GetBytes ("HaveItems")).b(); + edt = edt.putAttribute ("NodeName", "HaveItems").b(); edt = edt.addNewChildAt (rootPath, 1).b (); - edt = edt.putAttribute ("NodeName", Encoding.UTF8.GetBytes ("Stage")).b (); + edt = edt.putAttribute ("NodeName", "Stage").b (); edt = edt.commit ().b(); } diff -r bbab930748c4 -r 3fefb9f9025d Assets/DeathZone.cs --- a/Assets/DeathZone.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class DeathZone : MonoBehaviour { - - private GameObject target; - private Vector3 firstPoint = new Vector3(0.5f, 2f, 0.5f); - - public delegate void HitCallback (int n); - public HitCallback hitcallback; - - public void SetHitCallback (HitCallback hc) { - this.hitcallback = hc; - } - - private void Start () { - target = GameObject.FindGameObjectWithTag ("Player"); - } - - private void Update () { - Vector3 pos = target.transform.position; - this.transform.position = new Vector3 (pos.x, this.transform.position.y, pos.z); - } - - private void OnTriggerEnter (Collider col) { - if (col.tag == "Player") { - target.transform.position = firstPoint; - if (hitcallback != null) - hitcallback (1); - } - } -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/DeathZone.cs.meta --- a/Assets/DeathZone.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a0f3722794bb8475dbc4389b5fb1c15d -timeCreated: 1484446456 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Item.cs --- a/Assets/Item.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class Item : MonoBehaviour { - -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/Item.cs.meta --- a/Assets/Item.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 11f234c01c0fd473c8a707e31a51def2 -timeCreated: 1478504114 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/RenderingTestManager.cs --- a/Assets/RenderingTestManager.cs Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using JungleDB; -using System.Text; - -public class RenderingTestManager : MonoBehaviour { - - // Use this for initialization - void Start () { - Jungle jungle = new DefaultJungle (null, "Game", new DefaultTreeEditor(new DefaultTraverser())); - JungleTree tree = jungle.createNewTree ("Scene"); - NodePath root = new DefaultNodePath (); - - JungleTreeEditor edt = tree.getTreeEditor (); - - edt = edt.addNewChildAt (root, 0).b (); - } - - -} diff -r bbab930748c4 -r 3fefb9f9025d Assets/RenderingTestManager.cs.meta --- a/Assets/RenderingTestManager.cs.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e454b26a5556c418ab34083f7730f388 -timeCreated: 1484480773 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Grass.prefab --- a/Assets/Resources/Prefabs/Grass.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000014092569320} - m_IsPrefabParent: 1 ---- !u!1 &1000014092569320 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000010026650390} - - 33: {fileID: 33000011475648892} - - 65: {fileID: 65000011329499384} - - 23: {fileID: 23000013328734936} - - 114: {fileID: 114000014255414498} - m_Layer: 0 - m_Name: Grass - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000010026650390 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000013328734936 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: 0461da7c524cb4a1f9017f7eba43cab5, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000011475648892 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000011329499384 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - 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!114 &114000014255414498 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 2 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Grass.prefab.meta --- a/Assets/Resources/Prefabs/Grass.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1a9baa8b6e3ad458e95d6de9f526c44a -timeCreated: 1478078744 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object.meta --- a/Assets/Resources/Prefabs/Object.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 60d774a7ea0334a13944b73c4b9cbba4 -folderAsset: yes -timeCreated: 1478500570 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Grass.prefab --- a/Assets/Resources/Prefabs/Object/Grass.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000014092569320} - m_IsPrefabParent: 1 ---- !u!1 &1000014092569320 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000010026650390} - - 33: {fileID: 33000011475648892} - - 65: {fileID: 65000011329499384} - - 23: {fileID: 23000013328734936} - - 114: {fileID: 114000014255414498} - m_Layer: 0 - m_Name: Grass - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000010026650390 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000013328734936 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: 0461da7c524cb4a1f9017f7eba43cab5, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000011475648892 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000011329499384 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - 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!114 &114000014255414498 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000014092569320} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 2 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Grass.prefab.meta --- a/Assets/Resources/Prefabs/Object/Grass.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1a9baa8b6e3ad458e95d6de9f526c44a -timeCreated: 1478078744 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Sand.prefab --- a/Assets/Resources/Prefabs/Object/Sand.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000010030614130} - m_IsPrefabParent: 1 ---- !u!1 &1000010030614130 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000013024202954} - - 33: {fileID: 33000011606231334} - - 65: {fileID: 65000012592624602} - - 23: {fileID: 23000010471762472} - - 114: {fileID: 114000013459527038} - m_Layer: 0 - m_Name: Sand - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000013024202954 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000010471762472 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: 2b186449314524630a4bfbb6c560e5ca, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000011606231334 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000012592624602 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - 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!114 &114000013459527038 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 0 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Sand.prefab.meta --- a/Assets/Resources/Prefabs/Object/Sand.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 36dcbe084f98346a18383dab07d7fc8d -timeCreated: 1478078739 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Wood.prefab --- a/Assets/Resources/Prefabs/Object/Wood.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000012255475738} - m_IsPrefabParent: 1 ---- !u!1 &1000012255475738 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000011261054282} - - 33: {fileID: 33000010253330550} - - 65: {fileID: 65000012052440900} - - 23: {fileID: 23000013931167398} - - 114: {fileID: 114000012749514202} - m_Layer: 0 - m_Name: Wood - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000011261054282 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000013931167398 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: d6a1fdd2008504e81b0f2aaaa63f9b40, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000010253330550 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000012052440900 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - 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!114 &114000012749514202 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 1 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Object/Wood.prefab.meta --- a/Assets/Resources/Prefabs/Object/Wood.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6c1607595ad6e412ca4f793a57028cdf -timeCreated: 1478078742 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Sand.prefab --- a/Assets/Resources/Prefabs/Sand.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000010030614130} - m_IsPrefabParent: 1 ---- !u!1 &1000010030614130 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000013024202954} - - 33: {fileID: 33000011606231334} - - 65: {fileID: 65000012592624602} - - 23: {fileID: 23000010471762472} - - 114: {fileID: 114000013459527038} - m_Layer: 0 - m_Name: Sand - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000013024202954 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000010471762472 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: 2b186449314524630a4bfbb6c560e5ca, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000011606231334 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000012592624602 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - 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!114 &114000013459527038 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000010030614130} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 0 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Sand.prefab.meta --- a/Assets/Resources/Prefabs/Sand.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 36dcbe084f98346a18383dab07d7fc8d -timeCreated: 1478078739 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Wood.prefab --- a/Assets/Resources/Prefabs/Wood.prefab Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +0,0 @@ -%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_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1000012255475738} - m_IsPrefabParent: 1 ---- !u!1 &1000012255475738 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 4000011261054282} - - 33: {fileID: 33000010253330550} - - 65: {fileID: 65000012052440900} - - 23: {fileID: 23000013931167398} - - 114: {fileID: 114000012749514202} - m_Layer: 0 - m_Name: Wood - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4000011261054282 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.26263177, y: 1.4007878, z: -3.8942955} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &23000013931167398 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 2100000, guid: d6a1fdd2008504e81b0f2aaaa63f9b40, type: 2} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_SelectedWireframeHidden: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &33000010253330550 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65000012052440900 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - 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!114 &114000012749514202 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1000012255475738} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2dac166f15533485ba17767ebef4407b, type: 3} - m_Name: - m_EditorClassIdentifier: - Attribute: 1 diff -r bbab930748c4 -r 3fefb9f9025d Assets/Resources/Prefabs/Wood.prefab.meta --- a/Assets/Resources/Prefabs/Wood.prefab.meta Wed Jan 18 22:00:24 2017 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6c1607595ad6e412ca4f793a57028cdf -timeCreated: 1478078742 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff -r bbab930748c4 -r 3fefb9f9025d obj/Debug/Assembly-CSharp.dll Binary file obj/Debug/Assembly-CSharp.dll has changed diff -r bbab930748c4 -r 3fefb9f9025d obj/Debug/Assembly-CSharp.dll.mdb Binary file obj/Debug/Assembly-CSharp.dll.mdb has changed