修复一个格子可以防止多个萌妖的bug
This commit is contained in:
parent
0aff6ad917
commit
073474b3f2
@ -13,6 +13,7 @@ GameObject:
|
||||
- component: {fileID: 1839958992}
|
||||
- component: {fileID: 1839958989}
|
||||
- component: {fileID: 1839958991}
|
||||
- component: {fileID: 8959485902271982650}
|
||||
m_Layer: 0
|
||||
m_Name: tower
|
||||
m_TagString: tower
|
||||
@ -145,3 +146,17 @@ SortingGroup:
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
--- !u!114 &8959485902271982650
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 924676270184311530}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 43159a13b66a6cf45bb3d8e9dbee99fb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
towerId:
|
||||
towerNumber: 0
|
||||
|
@ -804,6 +804,68 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 45892971}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1001 &173176130
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (3)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -3.63
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 3.03
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &173176131 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 173176130}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &284432669
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -867,11 +929,6 @@ MonoBehaviour:
|
||||
- {fileID: 3435906}
|
||||
- {fileID: 16085906}
|
||||
- {fileID: 11828202}
|
||||
--- !u!1 &301702498 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 1494345147}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &355430786
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1473,72 +1530,6 @@ MonoBehaviour:
|
||||
ExpFileObj: {fileID: 732537458938328743, guid: 952564c9dd0531e4da92ba005feee1e0, type: 3}
|
||||
ExpFilePrante: {fileID: 9463995}
|
||||
expList: []
|
||||
--- !u!1001 &457244935
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_TagString
|
||||
value: tower
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &457244936 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 457244935}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &459650024
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1967,69 +1958,6 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &682806283 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 457244935}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!61 &682806285
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 682806283}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1.42, y: 1.45}
|
||||
newSize: {x: 1.42, y: 1.45}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.42, y: 1.45}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!210 &682806287
|
||||
SortingGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 682806283}
|
||||
m_Enabled: 1
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
--- !u!50 &682806288
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 682806283}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.0001
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 0
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!1 &683663196
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2618,7 +2546,7 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 871080166}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1001 &886770322
|
||||
--- !u!1001 &902876237
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
@ -2627,23 +2555,19 @@ PrefabInstance:
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (2)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_TagString
|
||||
value: tower
|
||||
value: tower (4)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -3.6
|
||||
value: -3.62
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 3
|
||||
value: -3.03
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
@ -2655,15 +2579,15 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
@ -2679,10 +2603,10 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &886770323 stripped
|
||||
--- !u!4 &902876238 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 886770322}
|
||||
m_PrefabInstance: {fileID: 902876237}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &920394796
|
||||
GameObject:
|
||||
@ -4158,69 +4082,6 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1294833872}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1309322544 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 886770322}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!61 &1309322546
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309322544}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1.42, y: 1.45}
|
||||
newSize: {x: 1.42, y: 1.45}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.42, y: 1.45}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!210 &1309322548
|
||||
SortingGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309322544}
|
||||
m_Enabled: 1
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
--- !u!50 &1309322549
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309322544}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.0001
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 0
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!1 &1326163020
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -4754,196 +4615,6 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 2e76b707cea1c574fac26c5426bdd47c, type: 3}
|
||||
--- !u!1001 &1479012641
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (3)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_TagString
|
||||
value: tower
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 3.62
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -0.59
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &1479012642 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 1479012641}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &1494345147
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (4)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_TagString
|
||||
value: tower
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -3.6
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -3.02
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &1494345148 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 1494345147}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!61 &1494345150
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 301702498}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1.42, y: 1.45}
|
||||
newSize: {x: 1.42, y: 1.45}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.42, y: 1.45}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!210 &1494345152
|
||||
SortingGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 301702498}
|
||||
m_Enabled: 1
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
--- !u!50 &1494345153
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 301702498}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.0001
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 0
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!1 &1520004766
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -4985,6 +4656,68 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: -1}
|
||||
m_SizeDelta: {x: 0, y: 2}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1001 &1523911559
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (1)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 3.62
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -0.58
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &1523911560 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 1523911559}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1552201271
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -6024,10 +5757,10 @@ Transform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1839958987}
|
||||
- {fileID: 457244936}
|
||||
- {fileID: 886770323}
|
||||
- {fileID: 1479012642}
|
||||
- {fileID: 1494345148}
|
||||
- {fileID: 1523911560}
|
||||
- {fileID: 2018397307}
|
||||
- {fileID: 173176131}
|
||||
- {fileID: 902876238}
|
||||
m_Father: {fileID: 284432670}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -6232,6 +5965,68 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &2018397306
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1932457213}
|
||||
m_Modifications:
|
||||
- target: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: tower (2)
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 1.17
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 3.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
--- !u!4 &2018397307 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311531, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 2018397306}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2035101380
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -6516,69 +6311,6 @@ RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 5585480710040577075, guid: 10c7a38d6cf88b248a0faaa9cd1c2ccc, type: 3}
|
||||
m_PrefabInstance: {fileID: 2049440941}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2054916114 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 924676270184311530, guid: 8d398c914061e5842b409729ac3d43c1, type: 3}
|
||||
m_PrefabInstance: {fileID: 1479012641}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!61 &2054916116
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2054916114}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1.42, y: 1.45}
|
||||
newSize: {x: 1.42, y: 1.45}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.42, y: 1.45}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!210 &2054916118
|
||||
SortingGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2054916114}
|
||||
m_Enabled: 1
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
--- !u!50 &2054916119
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2054916114}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.0001
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 0
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!1 &2095962040
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -22,8 +22,14 @@ public class cardPlace : MonoBehaviour
|
||||
{
|
||||
if (!isInTrigger&& collision.tag.Equals(Tag))
|
||||
{
|
||||
if (collision.gameObject.GetComponent<tower>().towerNumber>0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
isInTrigger = true;
|
||||
tower = collision.gameObject;
|
||||
tower.GetComponent<tower>().towerNumber += 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,6 +38,7 @@ public class cardPlace : MonoBehaviour
|
||||
if (isInTrigger&&collision.tag.Equals(Tag))
|
||||
{
|
||||
isInTrigger = false;
|
||||
tower.GetComponent<tower>().towerNumber -= 1;
|
||||
tower = null;
|
||||
}
|
||||
}
|
||||
|
8
meng_yao/Assets/script/A_Fight/tower.meta
Normal file
8
meng_yao/Assets/script/A_Fight/tower.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83d58b411c2b5b640a2edc3a11bdccdb
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
meng_yao/Assets/script/A_Fight/tower/tower.cs
Normal file
9
meng_yao/Assets/script/A_Fight/tower/tower.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class tower : MonoBehaviour
|
||||
{
|
||||
public string towerId = null;
|
||||
[HideInInspector]public int towerNumber = 0;
|
||||
}
|
11
meng_yao/Assets/script/A_Fight/tower/tower.cs.meta
Normal file
11
meng_yao/Assets/script/A_Fight/tower/tower.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43159a13b66a6cf45bb3d8e9dbee99fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user