added map editor
This commit is contained in:
parent
8a32e9c2dd
commit
1b6b18e2dc
@ -91,7 +91,6 @@ Transform:
|
||||
- {fileID: 9139904548897826063}
|
||||
- {fileID: 7097297785207325771}
|
||||
- {fileID: 7729494576763388996}
|
||||
- {fileID: 5967423407554294071}
|
||||
m_Father: {fileID: 3258926182099020332}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -247,37 +246,6 @@ Transform:
|
||||
m_Father: {fileID: 4360591549949224098}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2620694123811538158
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 263386865163453060}
|
||||
m_Layer: 0
|
||||
m_Name: RigRibcage
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &263386865163453060
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2620694123811538158}
|
||||
m_LocalRotation: {x: 0.000000008219788, y: -0.000000083167116, z: -0.41957593, w: 0.90772027}
|
||||
m_LocalPosition: {x: -0.31475058, y: -0.000000019073486, z: 0}
|
||||
m_LocalScale: {x: 0.9999996, y: 0.9999997, z: 0.99999976}
|
||||
m_Children:
|
||||
- {fileID: 2112264478791540340}
|
||||
m_Father: {fileID: 5967423407554294071}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2770233513474732182
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -367,68 +335,6 @@ Transform:
|
||||
m_Father: {fileID: 7729494576763388996}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &3992484004039888441
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2112264478791540340}
|
||||
m_Layer: 0
|
||||
m_Name: RigNeck
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &2112264478791540340
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3992484004039888441}
|
||||
m_LocalRotation: {x: -0.0000012967535, y: 0.000002492407, z: -0.26888803, w: 0.9631714}
|
||||
m_LocalPosition: {x: -0.17295547, y: 0.016769523, z: -0.000000003265277}
|
||||
m_LocalScale: {x: 1.0000002, y: 1.0000002, z: 1.0000002}
|
||||
m_Children:
|
||||
- {fileID: 1250598866976119025}
|
||||
m_Father: {fileID: 263386865163453060}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &4305233817686630293
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5967423407554294071}
|
||||
m_Layer: 0
|
||||
m_Name: RigSpine
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5967423407554294071
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4305233817686630293}
|
||||
m_LocalRotation: {x: -0.000000007627683, y: 0.000000040374438, z: 0.18990324, w: 0.9818028}
|
||||
m_LocalPosition: {x: -0.09805671, y: -0.049622525, z: 0.000000009661853}
|
||||
m_LocalScale: {x: 1.0000004, y: 1.0000005, z: 1.0000002}
|
||||
m_Children:
|
||||
- {fileID: 263386865163453060}
|
||||
m_Father: {fileID: 3635317389758609231}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &5285346142977381031
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -490,37 +396,6 @@ Transform:
|
||||
m_Father: {fileID: 5969661864517889845}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &5438289572956579988
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1250598866976119025}
|
||||
m_Layer: 0
|
||||
m_Name: RigHead
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1250598866976119025
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5438289572956579988}
|
||||
m_LocalRotation: {x: 0.0000025312522, y: -0.0000013889069, z: -0.33883968, w: 0.9408442}
|
||||
m_LocalPosition: {x: -0.07582462, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.99999976, y: 0.9999999, z: 0.99999976}
|
||||
m_Children:
|
||||
- {fileID: 4665310829454656443}
|
||||
m_Father: {fileID: 2112264478791540340}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &5502481470430825574
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -750,18 +625,18 @@ SkinnedMeshRenderer:
|
||||
m_SkinnedMotionVectors: 1
|
||||
m_Mesh: {fileID: 8515143096748062793, guid: 6d8303d2cfc9a6b47800bb5574342b33, type: 3}
|
||||
m_Bones:
|
||||
- {fileID: 5967423407554294071}
|
||||
- {fileID: 0}
|
||||
- {fileID: 3635317389758609231}
|
||||
- {fileID: 7097297785207325771}
|
||||
- {fileID: 4665310829454656443}
|
||||
- {fileID: 263386865163453060}
|
||||
- {fileID: 1250598866976119025}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 7729494576763388996}
|
||||
- {fileID: 1480802736273070701}
|
||||
- {fileID: 1322214815755571192}
|
||||
- {fileID: 5471364596810255676}
|
||||
- {fileID: 4360591549949224098}
|
||||
- {fileID: 2112264478791540340}
|
||||
- {fileID: 0}
|
||||
- {fileID: 3596284055363245495}
|
||||
- {fileID: 9139904548897826063}
|
||||
- {fileID: 1034717921395266960}
|
||||
@ -836,36 +711,6 @@ Transform:
|
||||
m_Father: {fileID: 3596284055363245495}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &8758734011087475569
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4665310829454656443}
|
||||
m_Layer: 0
|
||||
m_Name: RigMouth
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4665310829454656443
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8758734011087475569}
|
||||
m_LocalRotation: {x: -3.5246677e-14, y: -0.000000030539546, z: -0.15684706, w: 0.9876229}
|
||||
m_LocalPosition: {x: -0.10575517, y: 0.13122681, z: -0.000000025550616}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1250598866976119025}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &4908280672375660290
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -873,138 +718,111 @@ PrefabInstance:
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 3258926182099020332}
|
||||
m_Modifications:
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.rateOverTime.scalar
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: InitialModule.startSize.minMaxState
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: InitialModule.startSizeY.minMaxState
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: InitialModule.startSizeZ.minMaxState
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.maxCurve.m_Curve.Array.data[0].inWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.maxCurve.m_Curve.Array.data[1].inWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.minCurve.m_Curve.Array.data[0].inWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.minCurve.m_Curve.Array.data[1].inWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.maxCurve.m_Curve.Array.data[0].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.maxCurve.m_Curve.Array.data[1].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.minCurve.m_Curve.Array.data[0].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107324874188, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: EmissionModule.m_Bursts.Array.data[0].countCurve.minCurve.m_Curve.Array.data[1].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.7294265
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.7294265
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.7294265
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 594306107340321050, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
- target: {fileID: 594306107340321050, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: MonsterAura
|
||||
objectReference: {fileID: 0}
|
||||
@ -1012,7 +830,6 @@ PrefabInstance:
|
||||
m_SourcePrefab: {fileID: 100100000, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
--- !u!4 &5486177116855049374 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4,
|
||||
type: 3}
|
||||
m_CorrespondingSourceObject: {fileID: 594306107339981724, guid: ef48e21b8db1e4c42bf5cad1512c98d4, type: 3}
|
||||
m_PrefabInstance: {fileID: 4908280672375660290}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
|
Binary file not shown.
@ -1,8 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 503471ee54dd6d047b2708ff2454c38f
|
||||
NativeFormatImporter:
|
||||
guid: 61b56c61190eab54ebe8e1dc69573194
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Resources/Maps/Level1/Enviroment.meta
Normal file
8
Assets/Resources/Maps/Level1/Enviroment.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 002887355224d3a4c8904a0c5a6a6103
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,95 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &978287592
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 978287594}
|
||||
- component: {fileID: 978287593}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Ligh
|
||||
m_TagString: Save
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &978287594
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 978287592}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 7.9164233, y: 3.7355437, z: -4.8078966}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!108 &978287593
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 978287592}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 10
|
||||
m_Type: 1
|
||||
m_Shape: 0
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 0
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 61e4c9655fcadf84a9827056d5c1b851
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
16111
Assets/Resources/Maps/Level1/Enviroment/Snake.prefab
Normal file
16111
Assets/Resources/Maps/Level1/Enviroment/Snake.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b960637b077a1e04082371e9347aa7dc
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Maps/Level1/Level1.dat
Normal file
BIN
Assets/Resources/Maps/Level1/Level1.dat
Normal file
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80beee5a600db9443826c4bf63f5d2d0
|
||||
guid: adcae4dd490cbee419cb5d04308ce870
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
@ -1,23 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a1700d9ee2ab4d8e8ac1b551b7c93ce8, type: 3}
|
||||
m_Name: FieldData
|
||||
m_EditorClassIdentifier:
|
||||
width: 6
|
||||
height: 6
|
||||
hexCaptureManaCost: 0
|
||||
hexHardCaptureManaCost: 0
|
||||
hexHardCaptureTime: 0
|
||||
cellPrefab: {fileID: 1661242500252451528, guid: bcea5b4a96735bd4b936f8f3fefcc688, type: 3}
|
||||
cellLabelPrefab: {fileID: 0}
|
||||
CoordinatesCanvas: {fileID: 0}
|
||||
colors: []
|
File diff suppressed because it is too large
Load Diff
@ -71,7 +71,6 @@ namespace Editor
|
||||
});
|
||||
|
||||
|
||||
|
||||
return tree;
|
||||
}
|
||||
|
||||
|
@ -41,9 +41,9 @@ namespace HexFiled
|
||||
}
|
||||
}
|
||||
|
||||
public SerializibleHexCell ToSerializibleHexCell()
|
||||
public SerializableHexCell ToSerializibleHexCell()
|
||||
{
|
||||
SerializibleHexCell cell = new SerializibleHexCell();
|
||||
SerializableHexCell cell = new SerializableHexCell();
|
||||
cell.HexCoordinates = coordinates;
|
||||
cell.index = index;
|
||||
return cell;
|
||||
|
@ -3,9 +3,12 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Text.RegularExpressions;
|
||||
using HexFiled;
|
||||
using Sirenix.OdinInspector;
|
||||
using Sirenix.OdinInspector.Editor;
|
||||
using TMPro;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
@ -14,15 +17,19 @@ namespace DefaultNamespace
|
||||
[Serializable]
|
||||
public class GridToSave
|
||||
{
|
||||
public SerializibleHexCell[] cells;
|
||||
public SerializableHexCell[] cells;
|
||||
|
||||
public int height;
|
||||
|
||||
public int width;
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class SerializibleHexCell
|
||||
public class SerializableHexCell
|
||||
{
|
||||
public HexCoordinates HexCoordinates;
|
||||
|
||||
public (int x, int z, int i) index;
|
||||
}
|
||||
|
||||
@ -33,45 +40,34 @@ namespace DefaultNamespace
|
||||
[SerializeField] private TMP_Text labelPrefab;
|
||||
[SerializeField] private GameObject gridCanvas;
|
||||
[SerializeField] private string levelName;
|
||||
|
||||
[SerializeField, ListDrawerSettings(
|
||||
CustomAddFunction = "NewLevel",
|
||||
CustomRemoveIndexFunction = "RemoveLevel"
|
||||
)] private List<string> levels;
|
||||
)]
|
||||
private List<string> levels;
|
||||
|
||||
[SerializeField] private string pathToMap;
|
||||
|
||||
private GameObject gridCanvasInstance;
|
||||
private GameObject _gridCanvasInstance;
|
||||
private HexCell[] _cells;
|
||||
private HexGrid hexGrid;
|
||||
private int _width;
|
||||
private int _height;
|
||||
|
||||
private Color activeColor;
|
||||
private GameObject fieldBaseGameObject;
|
||||
private GameObject labelCanvas;
|
||||
private GameObject _fieldBaseGameObject;
|
||||
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[Button("Draw Map")]
|
||||
private void DrawMap(int x, int y)
|
||||
{
|
||||
if (fieldBaseGameObject != null)
|
||||
{
|
||||
DestroyImmediate(fieldBaseGameObject);
|
||||
}
|
||||
DestroyImmediate(_fieldBaseGameObject != null ? _fieldBaseGameObject : GameObject.Find("HexGrid"));
|
||||
|
||||
if (gridCanvasInstance == null)
|
||||
{
|
||||
DestroyImmediate(gridCanvasInstance);
|
||||
}
|
||||
DestroyImmediate(_gridCanvasInstance != null ? _gridCanvasInstance : GameObject.Find("CoordCanvas(Clone)"));
|
||||
|
||||
gridCanvasInstance = Instantiate(gridCanvas);
|
||||
_gridCanvasInstance = Instantiate(gridCanvas);
|
||||
|
||||
fieldBaseGameObject = new GameObject("HexField");
|
||||
_fieldBaseGameObject = new GameObject("HexField");
|
||||
_cells = new HexCell[x * y];
|
||||
_width = x;
|
||||
_height = y;
|
||||
@ -80,65 +76,94 @@ namespace DefaultNamespace
|
||||
}
|
||||
|
||||
[Button("Load Map")]
|
||||
private void LoadMap(string fileName)
|
||||
private void OpenLoadWindow()
|
||||
{
|
||||
if (File.Exists($"{pathToMap}/{fileName}.dat"))
|
||||
{
|
||||
BinaryFormatter bf = new BinaryFormatter();
|
||||
FileStream file =
|
||||
File.Open($"{pathToMap}/{fileName}.dat", FileMode.Open);
|
||||
GridToSave data = (GridToSave)bf.Deserialize(file);
|
||||
file.Close();
|
||||
|
||||
if (fieldBaseGameObject != null)
|
||||
{
|
||||
DestroyImmediate(fieldBaseGameObject);
|
||||
}
|
||||
|
||||
if (gridCanvasInstance != null)
|
||||
{
|
||||
DestroyImmediate(gridCanvasInstance);
|
||||
}
|
||||
|
||||
gridCanvasInstance = Instantiate(gridCanvas);
|
||||
|
||||
fieldBaseGameObject = new GameObject("HexField");
|
||||
_height = data.height;
|
||||
_width = data.width;
|
||||
_cells = new HexCell[_width * _height];
|
||||
|
||||
|
||||
foreach (var cell in data.cells)
|
||||
{
|
||||
CreateCell(cell.index.x, cell.index.z, cell.index.i);
|
||||
}
|
||||
|
||||
Debug.Log("Game data loaded!");
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
Debug.LogError("There is no save data!");
|
||||
LoadMapWindows.OpenWindow(this);
|
||||
}
|
||||
|
||||
|
||||
void SaveGrid()
|
||||
|
||||
private void LoadMap(string fileName)
|
||||
{
|
||||
BinaryFormatter bf = new BinaryFormatter();
|
||||
FileStream file = File.Create($"{pathToMap}/{levelName}.dat");
|
||||
FileStream fs = new FileStream(fileName,
|
||||
FileMode.Open);
|
||||
|
||||
GridToSave data = (GridToSave)bf.Deserialize(fs);
|
||||
|
||||
|
||||
fs.Close();
|
||||
DestroyImmediate(_fieldBaseGameObject != null ? _fieldBaseGameObject : GameObject.Find("HexGrid"));
|
||||
|
||||
DestroyImmediate(_gridCanvasInstance != null ? _gridCanvasInstance : GameObject.Find("CoordCanvas(Clone)"));
|
||||
|
||||
_gridCanvasInstance = Instantiate(gridCanvas);
|
||||
|
||||
_fieldBaseGameObject = new GameObject("HexField");
|
||||
_height = data.height;
|
||||
_width = data.width;
|
||||
_cells = new HexCell[_width * _height];
|
||||
|
||||
|
||||
foreach (var cell in data.cells)
|
||||
{
|
||||
CreateCell(cell.index.x, cell.index.z, cell.index.i);
|
||||
}
|
||||
|
||||
GameObject.FindGameObjectsWithTag("Save").Where(x =>
|
||||
x.name != "HexField" && x.name != "CoordCanvas(Clone)" && !x.GetComponent<Camera>() &&
|
||||
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
||||
.ToList().ForEach(DestroyImmediate);
|
||||
|
||||
Regex rx = new Regex(@"\b[\\]\w+.dat\b",
|
||||
RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
MatchCollection matchedAuthors = rx.Matches(fileName);
|
||||
var mapName = fileName.Replace(matchedAuthors[0].Value, "");
|
||||
Directory.GetFiles($"{mapName}/Enviroment", "*.prefab", SearchOption.AllDirectories).ToList().ForEach(x =>
|
||||
{
|
||||
var prefab = x.Replace("\\", "/");
|
||||
var go = PrefabUtility.LoadPrefabContents(prefab);
|
||||
var instance = Instantiate(go);
|
||||
instance.name = go.name.Replace("(Clone)", "");
|
||||
instance.tag = "Save";
|
||||
});
|
||||
|
||||
Debug.Log("Game data loaded!");
|
||||
}
|
||||
|
||||
|
||||
[Button("Save", ButtonSizes.Gigantic)]
|
||||
void SaveGrid()
|
||||
{
|
||||
Directory.CreateDirectory($"{pathToMap}/{levelName}");
|
||||
Directory.CreateDirectory($"{pathToMap}/{levelName}/Enviroment");
|
||||
BinaryFormatter bf = new BinaryFormatter();
|
||||
FileStream file = File.Create($"{pathToMap}/{levelName}/{levelName}.dat");
|
||||
GridToSave data = new GridToSave();
|
||||
var tmp = new List<SerializibleHexCell>();
|
||||
var tmp = new List<SerializableHexCell>();
|
||||
_cells.ToList().Where(x => x != null).ToList().ForEach(cell =>
|
||||
{
|
||||
tmp.Add(cell == null ? null : cell.ToSerializibleHexCell());
|
||||
});
|
||||
|
||||
|
||||
GameObject.FindGameObjectsWithTag("Save").Where(x =>
|
||||
x.name != "HexField" && x.name != "CoordCanvas(Clone)" && !x.GetComponent<Camera>() &&
|
||||
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
||||
.ToList().ForEach(x =>
|
||||
{
|
||||
if(File.Exists($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab"))
|
||||
File.Delete($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
||||
PrefabUtility.SaveAsPrefabAsset(x, $"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
||||
});
|
||||
|
||||
data.cells = tmp.ToArray();
|
||||
data.width = _width;
|
||||
data.height = _height;
|
||||
|
||||
|
||||
bf.Serialize(file, data);
|
||||
file.Close();
|
||||
|
||||
Debug.Log("Game data saved!");
|
||||
}
|
||||
|
||||
@ -148,10 +173,9 @@ namespace DefaultNamespace
|
||||
SaveGrid();
|
||||
levels.Add(levelName);
|
||||
levelName = "";
|
||||
|
||||
DestroyImmediate(gridCanvasInstance);
|
||||
DestroyImmediate(fieldBaseGameObject);
|
||||
|
||||
|
||||
DestroyImmediate(_gridCanvasInstance);
|
||||
DestroyImmediate(_fieldBaseGameObject);
|
||||
}
|
||||
|
||||
private void RemoveLevel(int i)
|
||||
@ -200,7 +224,7 @@ namespace DefaultNamespace
|
||||
}
|
||||
|
||||
|
||||
cell.transform.SetParent(fieldBaseGameObject.transform, false);
|
||||
cell.transform.SetParent(_fieldBaseGameObject.transform, false);
|
||||
cell.transform.localPosition = position;
|
||||
|
||||
cell.index.i = i;
|
||||
@ -234,7 +258,7 @@ namespace DefaultNamespace
|
||||
}
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
TMP_Text label = Object.Instantiate(labelPrefab, gridCanvasInstance.transform, false);
|
||||
TMP_Text label = Object.Instantiate(labelPrefab, _gridCanvasInstance.transform, false);
|
||||
label.rectTransform.anchoredPosition =
|
||||
new Vector2(position.x, position.z);
|
||||
label.text = cell.coordinates.ToStringOnSeparateLines();
|
||||
@ -252,5 +276,55 @@ namespace DefaultNamespace
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class LoadMapWindows : OdinEditorWindow
|
||||
{
|
||||
public static void OpenWindow(HexMapEditor editor)
|
||||
{
|
||||
var loadMapWindow = GetWindow<LoadMapWindows>();
|
||||
loadMapWindow.Show();
|
||||
loadMapWindow.MapsList = new List<Maps>();
|
||||
List<string> pathes = new List<string>();
|
||||
|
||||
pathes = Directory.GetFiles("Assets/Resources/Maps", "*.dat", SearchOption.AllDirectories).ToList();
|
||||
pathes.ForEach(x => { loadMapWindow.MapsList.Add(new Maps(x, editor, DeleteMap)); });
|
||||
}
|
||||
|
||||
[TableList(IsReadOnly = true, DrawScrollView = false, AlwaysExpanded = true, HideToolbar = true)]
|
||||
public List<Maps> MapsList;
|
||||
|
||||
private static void DeleteMap(Maps maps)
|
||||
{
|
||||
GetWindow<LoadMapWindows>().MapsList.Remove(maps);
|
||||
}
|
||||
|
||||
public class Maps
|
||||
{
|
||||
private HexMapEditor _editor;
|
||||
private Action<Maps> OnMapDeleted;
|
||||
|
||||
public Maps(string path, HexMapEditor editor, Action<Maps> onMapDeleted)
|
||||
{
|
||||
this.path = path;
|
||||
_editor = editor;
|
||||
OnMapDeleted += onMapDeleted;
|
||||
}
|
||||
|
||||
[Button("Load")]
|
||||
public void LoadMap()
|
||||
{
|
||||
_editor.LoadMap(path);
|
||||
}
|
||||
|
||||
[Button("Remove")]
|
||||
public void RemoveMap()
|
||||
{
|
||||
File.Delete(path);
|
||||
OnMapDeleted.Invoke(this);
|
||||
}
|
||||
|
||||
[InlineProperty()] public string path;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -3,7 +3,8 @@
|
||||
--- !u!78 &1
|
||||
TagManager:
|
||||
serializedVersion: 2
|
||||
tags: []
|
||||
tags:
|
||||
- Save
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
Loading…
x
Reference in New Issue
Block a user