added rocket, level editor, level settings, made round async
This commit is contained in:
parent
1b6b18e2dc
commit
7c8f78a39b
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 61b56c61190eab54ebe8e1dc69573194
|
guid: 8c80bdd8512f62940a7e17ae649792a6
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
3
Assets/Gizmos/Spawner.png
Normal file
3
Assets/Gizmos/Spawner.png
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2b0fa72583c0e374a8ae47bcfda2c9da01a520f00d911fbabe439e21c0ce2c95
|
||||||
|
size 38513
|
96
Assets/Gizmos/Spawner.png.meta
Normal file
96
Assets/Gizmos/Spawner.png.meta
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c6147df1c2f0c534b98bf1a43ec25237
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 11
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -95,7 +95,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: Win64
|
Standalone: Win64
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
CPU:
|
CPU:
|
||||||
- first:
|
- first:
|
||||||
|
@ -95,7 +95,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: Win64
|
Standalone: Win64
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
CPU:
|
CPU:
|
||||||
- first:
|
- first:
|
||||||
|
@ -84,6 +84,11 @@ PluginImporter:
|
|||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings: {}
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
- first:
|
- first:
|
||||||
WebGL: WebGL
|
WebGL: WebGL
|
||||||
second:
|
second:
|
||||||
|
@ -84,6 +84,11 @@ PluginImporter:
|
|||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings: {}
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
- first:
|
- first:
|
||||||
WebGL: WebGL
|
WebGL: WebGL
|
||||||
second:
|
second:
|
||||||
|
@ -9,7 +9,6 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 2395323453841137154}
|
- component: {fileID: 2395323453841137154}
|
||||||
- component: {fileID: 2474514080286293112}
|
|
||||||
- component: {fileID: 6704445576903181141}
|
- component: {fileID: 6704445576903181141}
|
||||||
- component: {fileID: 6549333022432013590}
|
- component: {fileID: 6549333022432013590}
|
||||||
- component: {fileID: 2801708427468119763}
|
- component: {fileID: 2801708427468119763}
|
||||||
@ -34,29 +33,6 @@ Transform:
|
|||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &2474514080286293112
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1661242500252451528}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e3d3de04c7eaa4677adc5cb5e120ecef, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
coordinates:
|
|
||||||
x: 0
|
|
||||||
z: 0
|
|
||||||
neighbors:
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
- {fileID: 0}
|
|
||||||
_item: {fileID: 0}
|
|
||||||
--- !u!33 &6704445576903181141
|
--- !u!33 &6704445576903181141
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
437
Assets/Resources/1/VFX/Bonus/Attack/Rocket/Rocket.prefab
Normal file
437
Assets/Resources/1/VFX/Bonus/Attack/Rocket/Rocket.prefab
Normal file
@ -0,0 +1,437 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &662838864788327244
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5265688399371918045}
|
||||||
|
- component: {fileID: 6548986896471624552}
|
||||||
|
- component: {fileID: 7385595456525671967}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Rocket
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5265688399371918045
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 662838864788327244}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8618016098659616984}
|
||||||
|
- {fileID: 2102218535001565925}
|
||||||
|
- {fileID: 9121501637572554965}
|
||||||
|
- {fileID: 8346596791978572637}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &6548986896471624552
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 662838864788327244}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: a6c40bc90bdc66a4bbe77ada83a89ffa, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
serializationData:
|
||||||
|
SerializedFormat: 2
|
||||||
|
SerializedBytes:
|
||||||
|
ReferencedUnityObjects:
|
||||||
|
- {fileID: 2105778478900010905}
|
||||||
|
- {fileID: 9122837441758120185}
|
||||||
|
- {fileID: 8340946428875874835}
|
||||||
|
- {fileID: 8613865878364058734}
|
||||||
|
SerializedBytesString:
|
||||||
|
Prefab: {fileID: 0}
|
||||||
|
PrefabModificationsReferencedUnityObjects: []
|
||||||
|
PrefabModifications: []
|
||||||
|
SerializationNodes:
|
||||||
|
- Name: Rockets
|
||||||
|
Entry: 7
|
||||||
|
Data: 0|System.Collections.Generic.Dictionary`2[[HexFiled.UnitColor, Assembly-CSharp],[UnityEngine.GameObject,
|
||||||
|
UnityEngine.CoreModule]], mscorlib
|
||||||
|
- Name: comparer
|
||||||
|
Entry: 7
|
||||||
|
Data: 1|System.Collections.Generic.EnumEqualityComparer`1[[HexFiled.UnitColor,
|
||||||
|
Assembly-CSharp]], mscorlib
|
||||||
|
- Name:
|
||||||
|
Entry: 12
|
||||||
|
Data: 0
|
||||||
|
- Name:
|
||||||
|
Entry: 13
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 12
|
||||||
|
Data: 4
|
||||||
|
- Name:
|
||||||
|
Entry: 7
|
||||||
|
Data:
|
||||||
|
- Name: $k
|
||||||
|
Entry: 3
|
||||||
|
Data: 0
|
||||||
|
- Name: $v
|
||||||
|
Entry: 10
|
||||||
|
Data: 0
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 7
|
||||||
|
Data:
|
||||||
|
- Name: $k
|
||||||
|
Entry: 3
|
||||||
|
Data: 1
|
||||||
|
- Name: $v
|
||||||
|
Entry: 10
|
||||||
|
Data: 1
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 7
|
||||||
|
Data:
|
||||||
|
- Name: $k
|
||||||
|
Entry: 3
|
||||||
|
Data: 3
|
||||||
|
- Name: $v
|
||||||
|
Entry: 10
|
||||||
|
Data: 2
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 7
|
||||||
|
Data:
|
||||||
|
- Name: $k
|
||||||
|
Entry: 3
|
||||||
|
Data: 4
|
||||||
|
- Name: $v
|
||||||
|
Entry: 10
|
||||||
|
Data: 3
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 13
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
_unit: {fileID: 0}
|
||||||
|
_color: 0
|
||||||
|
--- !u!136 &7385595456525671967
|
||||||
|
CapsuleCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 662838864788327244}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Radius: 0.85936713
|
||||||
|
m_Height: 1.7187343
|
||||||
|
m_Direction: 1
|
||||||
|
m_Center: {x: 0, y: 0.9768357, z: 0.058528423}
|
||||||
|
--- !u!1001 &1123732626741828259
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 5265688399371918045}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8143238817341952602, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Rocket_Red
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8143238817341952602, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_IsActive
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
--- !u!1 &9122837441758120185 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8143238817341952602, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1123732626741828259}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!4 &9121501637572554965 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8146547421071108726, guid: aada23a858a5ab34e862f64993c43cc5, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1123732626741828259}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &1528331228668619632
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 5265688399371918045}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7418914791400950115, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Rocket_Yellow
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7418914791400950115, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
propertyPath: m_IsActive
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
--- !u!1 &8340946428875874835 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 7418914791400950115, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1528331228668619632}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!4 &8346596791978572637 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 7413110429559410733, guid: 13431d38aaa99b8409a3e1ef301152d7, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1528331228668619632}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &4311613518188972415
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 5265688399371918045}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5503245665281670417, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Rocket_Blue
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5503245665281670417, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
propertyPath: m_IsActive
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
--- !u!1 &8613865878364058734 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 5503245665281670417, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4311613518188972415}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!4 &8618016098659616984 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 5497974157555089831, guid: 44cde8ae572d9754082ffcb120a3fb5e, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4311613518188972415}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &8054594200642267843
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 5265688399371918045}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.7071068
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 90
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8286219375796254042, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Rocket_Green
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8286219375796254042, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
propertyPath: m_IsActive
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
--- !u!1 &2105778478900010905 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8286219375796254042, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8054594200642267843}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!4 &2102218535001565925 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8280780915449692198, guid: ab893276689339a4c82d7c72317dced5, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8054594200642267843}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b960637b077a1e04082371e9347aa7dc
|
guid: 4ae54c1263fd76148b1888c9e05f1d48
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
3
Assets/Resources/1/VFX/Bonus/Attack/Rocket/RocketFBX.fbx
Normal file
3
Assets/Resources/1/VFX/Bonus/Attack/Rocket/RocketFBX.fbx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:32b4395a14af61c44d016090c3e81a49b67abc2d24fb424fb624b722e96487f1
|
||||||
|
size 29740
|
102
Assets/Resources/1/VFX/Bonus/Attack/Rocket/RocketFBX.fbx.meta
Normal file
102
Assets/Resources/1/VFX/Bonus/Attack/Rocket/RocketFBX.fbx.meta
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 36097f23e877b274d82028a998d066b9
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 20200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -40,7 +40,7 @@ MeshFilter:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5503245665281670417}
|
m_GameObject: {fileID: 5503245665281670417}
|
||||||
m_Mesh: {fileID: 4300000, guid: e161d2913bca37a44a645d97c1e0c715, type: 3}
|
m_Mesh: {fileID: -7607673222150694940, guid: 36097f23e877b274d82028a998d066b9, type: 3}
|
||||||
--- !u!23 &5478883122182798693
|
--- !u!23 &5478883122182798693
|
||||||
MeshRenderer:
|
MeshRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -169,7 +169,6 @@ PrefabInstance:
|
|||||||
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
--- !u!4 &1687892424394123116 stripped
|
--- !u!4 &1687892424394123116 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e,
|
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 1687892424393925090}
|
m_PrefabInstance: {fileID: 1687892424393925090}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
@ -40,7 +40,7 @@ MeshFilter:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 8286219375796254042}
|
m_GameObject: {fileID: 8286219375796254042}
|
||||||
m_Mesh: {fileID: 4300000, guid: e161d2913bca37a44a645d97c1e0c715, type: 3}
|
m_Mesh: {fileID: -7607673222150694940, guid: 36097f23e877b274d82028a998d066b9, type: 3}
|
||||||
--- !u!23 &8264102999877219332
|
--- !u!23 &8264102999877219332
|
||||||
MeshRenderer:
|
MeshRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -169,7 +169,6 @@ PrefabInstance:
|
|||||||
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
--- !u!4 &5731739692457127003 stripped
|
--- !u!4 &5731739692457127003 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e,
|
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 5731739692457454293}
|
m_PrefabInstance: {fileID: 5731739692457454293}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
@ -40,7 +40,7 @@ MeshFilter:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 8143238817341952602}
|
m_GameObject: {fileID: 8143238817341952602}
|
||||||
m_Mesh: {fileID: 4300000, guid: e161d2913bca37a44a645d97c1e0c715, type: 3}
|
m_Mesh: {fileID: -7607673222150694940, guid: 36097f23e877b274d82028a998d066b9, type: 3}
|
||||||
--- !u!23 &8166517781864251558
|
--- !u!23 &8166517781864251558
|
||||||
MeshRenderer:
|
MeshRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -169,7 +169,6 @@ PrefabInstance:
|
|||||||
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
--- !u!4 &9207739359727120567 stripped
|
--- !u!4 &9207739359727120567 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e,
|
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 9207739359727318585}
|
m_PrefabInstance: {fileID: 9207739359727318585}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
@ -40,7 +40,7 @@ MeshFilter:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 7418914791400950115}
|
m_GameObject: {fileID: 7418914791400950115}
|
||||||
m_Mesh: {fileID: 4300000, guid: e161d2913bca37a44a645d97c1e0c715, type: 3}
|
m_Mesh: {fileID: -7607673222150694940, guid: 36097f23e877b274d82028a998d066b9, type: 3}
|
||||||
--- !u!23 &7395924412632167375
|
--- !u!23 &7395924412632167375
|
||||||
MeshRenderer:
|
MeshRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -169,7 +169,6 @@ PrefabInstance:
|
|||||||
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
--- !u!4 &1385596424121960 stripped
|
--- !u!4 &1385596424121960 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e,
|
m_CorrespondingSourceObject: {fileID: 460430, guid: 3b671081e44be1c4aa4355e8ba6e8a5e, type: 3}
|
||||||
type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 1385596424448230}
|
m_PrefabInstance: {fileID: 1385596424448230}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
8
Assets/Resources/1/VFX/Bonus/Attack/Stake.meta
Normal file
8
Assets/Resources/1/VFX/Bonus/Attack/Stake.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bc268007f8883704b8f71721d481fc04
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
283
Assets/Resources/1/VFX/Bonus/Attack/Stake/MStake.mat
Normal file
283
Assets/Resources/1/VFX/Bonus/Attack/Stake/MStake.mat
Normal file
@ -0,0 +1,283 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: MStake
|
||||||
|
m_Shader: {fileID: 4800000, guid: 371dee73dabc89140878360402049bfc, type: 3}
|
||||||
|
m_ShaderKeywords: _FRESNELHIGHLIGHTS_ON _MK_ARTISTIC_PROJECTION_SCREEN_SPACE _MK_COLOR_GRADING_ALBEDO
|
||||||
|
_MK_DETAIL_BLEND_MIX _MK_ENVIRONMENT_REFLECTIONS_AMBIENT _MK_FRESNEL_HIGHLIGHTS
|
||||||
|
_MK_OUTLINE_HULL_CLIP _MK_RECEIVE_SHADOWS _MK_SPECULAR_ISOTROPIC _MK_WRAPPED_DIFFUSE
|
||||||
|
_RECEIVESHADOWS_ON _WRAPPEDLIGHTING_ON
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 2000
|
||||||
|
stringTagMap:
|
||||||
|
IGNOREPROJECTOR: False
|
||||||
|
RenderType: Opaque
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _AlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DiffuseRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DissolveBorderRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DissolveMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DrawnMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _GoochBrightMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _GoochDarkMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _GoochRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _HatchingBrightMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _HatchingDarkMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _HeightMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _IridescenceRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _LightTransmissionRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _NormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _RimRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _RoughnessMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SketchMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SpecularMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SpecularRamp:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ThicknessMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ThresholdMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _VertexAnimationMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _AdvancedTab: 1
|
||||||
|
- _AlphaClipping: 0
|
||||||
|
- _AlphaCutoff: 0.5
|
||||||
|
- _Anisotropy: 0
|
||||||
|
- _Artistic: 0
|
||||||
|
- _ArtisticFrequency: 1
|
||||||
|
- _ArtisticProjection: 1
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendDst: 0
|
||||||
|
- _BlendSrc: 1
|
||||||
|
- _Brightness: 2
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ColorGrading: 1
|
||||||
|
- _Contrast: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailBlend: 0
|
||||||
|
- _DetailMix: 0.5
|
||||||
|
- _DetailNormalMapIntensity: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _Diffuse: 0
|
||||||
|
- _DiffuseSmoothness: 0
|
||||||
|
- _DiffuseThresholdOffset: 0.25
|
||||||
|
- _Dissolve: 0
|
||||||
|
- _DissolveAmount: 0.5
|
||||||
|
- _DissolveBorderSize: 0.25
|
||||||
|
- _DissolveMapScale: 1
|
||||||
|
- _DrawnClampMax: 1
|
||||||
|
- _DrawnClampMin: 0
|
||||||
|
- _DrawnMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _FresnelHighlights: 1
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _GoochRampIntensity: 0.5
|
||||||
|
- _HatchingMapScale: 1
|
||||||
|
- _Initialized: 1
|
||||||
|
- _InputTab: 1
|
||||||
|
- _Iridescence: 0
|
||||||
|
- _IridescenceSize: 1
|
||||||
|
- _IridescenceSmoothness: 0.5
|
||||||
|
- _IridescenceThresholdOffset: 0
|
||||||
|
- _Light: 0
|
||||||
|
- _LightBands: 4
|
||||||
|
- _LightBandsScale: 0.5
|
||||||
|
- _LightThreshold: 0.5
|
||||||
|
- _LightTransmission: 0
|
||||||
|
- _LightTransmissionDistortion: 0.25
|
||||||
|
- _LightTransmissionIntensity: 1
|
||||||
|
- _LightTransmissionSmoothness: 0.5
|
||||||
|
- _LightTransmissionThresholdOffset: 0.25
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _NormalMapIntensity: 1
|
||||||
|
- _OcclusionMapIntensity: 1
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _OptionsTab: 1
|
||||||
|
- _Outline: 3
|
||||||
|
- _OutlineData: 0
|
||||||
|
- _OutlineFadeMax: 2
|
||||||
|
- _OutlineFadeMin: 0.25
|
||||||
|
- _OutlineNoise: 0
|
||||||
|
- _OutlineSize: 2
|
||||||
|
- _OutlineTab: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _RenderFace: 2
|
||||||
|
- _RenderPriority: 0
|
||||||
|
- _Rim: 0
|
||||||
|
- _RimSize: 1
|
||||||
|
- _RimSmoothness: 0.5
|
||||||
|
- _RimThresholdOffset: 0.25
|
||||||
|
- _Roughness: 0.5
|
||||||
|
- _Saturation: 1
|
||||||
|
- _SketchMapScale: 1
|
||||||
|
- _Smoothness: 0
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _Specular: 1
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SpecularIntensity: 1
|
||||||
|
- _SpecularSmoothness: 0
|
||||||
|
- _SpecularThresholdOffset: 0.25
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _Stencil: 1
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilFail: 0
|
||||||
|
- _StencilPass: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilRef: 0
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _StencilZFail: 0
|
||||||
|
- _StylizeTab: 1
|
||||||
|
- _Surface: 0
|
||||||
|
- _ThresholdMapScale: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _VertexAnimation: 0
|
||||||
|
- _VertexAnimationIntensity: 0.05
|
||||||
|
- _VertexAnimationStutter: 0
|
||||||
|
- _Workflow: 0
|
||||||
|
- _WrappedLighting: 1
|
||||||
|
- _ZTest: 4
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _AlbedoColor: {r: 1, g: 0, b: 0.8612037, a: 1}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _DetailColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _DissolveBorderColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _GoochBrightColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GoochDarkColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _IridescenceColor: {r: 1, g: 1, b: 1, a: 0.5}
|
||||||
|
- _LightTransmissionColor: {r: 1, g: 0.65, b: 0, a: 1}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _RimBrightColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _RimColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _RimDarkColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 0.203125, g: 0.203125, b: 0.203125, a: 1}
|
||||||
|
- _VertexAnimationFrequency: {r: 2.5, g: 2.5, b: 2.5, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d9af6ef07cb7bf64cb1b49fb35307f7e
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
3
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.fbx
Normal file
3
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.fbx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e2f6a7d1fd2e498580221255f380ebde6038b61cefc17b89e61f8534d168d111
|
||||||
|
size 12748
|
102
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.fbx.meta
Normal file
102
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.fbx.meta
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8a0bd24a2b0945849a222dc690d34235
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 20200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
780
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.prefab
Normal file
780
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake.prefab
Normal file
@ -0,0 +1,780 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &9125080148727291347
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8496353649581852521}
|
||||||
|
- component: {fileID: 4775723488397002956}
|
||||||
|
- component: {fileID: 7323469254759840774}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Stake
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8496353649581852521
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9125080148727291347}
|
||||||
|
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.8291339, y: 0.8291339, z: 0.8291339}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8230839234490874918}
|
||||||
|
- {fileID: 6547244679254435382}
|
||||||
|
- {fileID: 7099071380945115440}
|
||||||
|
- {fileID: 5468922099889817908}
|
||||||
|
- {fileID: 6001856358739994827}
|
||||||
|
- {fileID: 8214837314205928474}
|
||||||
|
- {fileID: 4343379307954862499}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &4775723488397002956
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9125080148727291347}
|
||||||
|
m_Mesh: {fileID: 3613567641014311022, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!23 &7323469254759840774
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9125080148727291347}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!1001 &5507685542420688607
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0.63560295
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.43780622
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &5468922099889817908 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 5507685542420688607}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &6106979992260874016
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 4
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0.63560295
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -0.43780622
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &6001856358739994827 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6106979992260874016}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &6725779859084902877
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -0.75500464
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &6547244679254435382 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6725779859084902877}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &7281844180473446107
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -0.63560295
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.43780622
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &7099071380945115440 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 7281844180473446107}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &8469668352806300657
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -0.63560295
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -0.43780622
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &8214837314205928474 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8469668352806300657}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &8478151692175376759
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 6
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.73732454
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 0.73732454
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 0.73732454
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.012060776
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453591714386, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: OpponentAura
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610800772, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.a
|
||||||
|
value: 0.5372549
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610800772, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.b
|
||||||
|
value: 0.84019756
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610800772, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.r
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610810510, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.a
|
||||||
|
value: 0.1764706
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610810510, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.b
|
||||||
|
value: 0.77448034
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5327400453610883902, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: InitialModule.startColor.maxColor.b
|
||||||
|
value: 0.94541836
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 04efd775509c00144993f7b46ecc2812, type: 3}
|
||||||
|
--- !u!4 &4343379307954862499 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 5327400453591529684, guid: 04efd775509c00144993f7b46ecc2812,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8478151692175376759}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &8481238872751102925
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 8496353649581852521}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0.75500464
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -7511558181221131132, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 2100000, guid: d9af6ef07cb7bf64cb1b49fb35307f7e, type: 2}
|
||||||
|
- target: {fileID: 919132149155446097, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Stake
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 8a0bd24a2b0945849a222dc690d34235, type: 3}
|
||||||
|
--- !u!4 &8230839234490874918 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 8a0bd24a2b0945849a222dc690d34235,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 8481238872751102925}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 61e4c9655fcadf84a9827056d5c1b851
|
guid: 5663dbcf605325241b40bc2afd5b6647
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
14200
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake_Damage.prefab
Normal file
14200
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake_Damage.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cab1e68c0278a704ab28851408bdf6b9
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
33728
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake_Explosion.prefab
Normal file
33728
Assets/Resources/1/VFX/Bonus/Attack/Stake/Stake_Explosion.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 111ad7b6e169d4546b40e187528fc1cf
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Assets/Resources/1/VFX/Bonus/Protection/Teleport.meta
Normal file
8
Assets/Resources/1/VFX/Bonus/Protection/Teleport.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: af1492b6d87121a469d140a106bff466
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3ae0ff71df25e8a4b9800d3c8f440cff
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
14401
Assets/Resources/1/VFX/Bonus/Protection/Teleport/TeleportHit.prefab
Normal file
14401
Assets/Resources/1/VFX/Bonus/Protection/Teleport/TeleportHit.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f00ad9077f1a1994d9102150bd5958c8
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
62
Assets/Resources/Data/Defaults.asset
Normal file
62
Assets/Resources/Data/Defaults.asset
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
%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: 09939b8f9dce4b858d34f89d66c453e6, type: 3}
|
||||||
|
m_Name: Defaults
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
serializationData:
|
||||||
|
SerializedFormat: 2
|
||||||
|
SerializedBytes:
|
||||||
|
ReferencedUnityObjects:
|
||||||
|
- {fileID: 1175122412763585952, guid: ca39954219550f949aeeecf95f25f3d1, type: 3}
|
||||||
|
SerializedBytesString:
|
||||||
|
Prefab: {fileID: 0}
|
||||||
|
PrefabModificationsReferencedUnityObjects: []
|
||||||
|
PrefabModifications: []
|
||||||
|
SerializationNodes:
|
||||||
|
- Name: buildings
|
||||||
|
Entry: 7
|
||||||
|
Data: 0|System.Collections.Generic.Dictionary`2[[Data.BuildingKeys, Assembly-CSharp],[UnityEngine.GameObject,
|
||||||
|
UnityEngine.CoreModule]], mscorlib
|
||||||
|
- Name: comparer
|
||||||
|
Entry: 7
|
||||||
|
Data: 1|System.Collections.Generic.EnumEqualityComparer`1[[Data.BuildingKeys,
|
||||||
|
Assembly-CSharp]], mscorlib
|
||||||
|
- Name:
|
||||||
|
Entry: 12
|
||||||
|
Data: 0
|
||||||
|
- Name:
|
||||||
|
Entry: 13
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 12
|
||||||
|
Data: 1
|
||||||
|
- Name:
|
||||||
|
Entry: 7
|
||||||
|
Data:
|
||||||
|
- Name: $k
|
||||||
|
Entry: 3
|
||||||
|
Data: 2
|
||||||
|
- Name: $v
|
||||||
|
Entry: 10
|
||||||
|
Data: 0
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 13
|
||||||
|
Data:
|
||||||
|
- Name:
|
||||||
|
Entry: 8
|
||||||
|
Data:
|
8
Assets/Resources/Data/Defaults.asset.meta
Normal file
8
Assets/Resources/Data/Defaults.asset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dd5ca1c9dc36b944a96cd347a3fe6b0d
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -17,7 +17,7 @@ MonoBehaviour:
|
|||||||
_weapon:
|
_weapon:
|
||||||
name: Rocket
|
name: Rocket
|
||||||
icon: {fileID: 0}
|
icon: {fileID: 0}
|
||||||
objectToThrow: {fileID: 5503245665281670417, guid: 857de15730a382b48a9d497d078336cd, type: 3}
|
objectToThrow: {fileID: 662838864788327244, guid: 4ae54c1263fd76148b1888c9e05f1d48, type: 3}
|
||||||
VFXGameObject: {fileID: 8032726150168125150, guid: 65c8920b6d1553a4d885992e8f7dff6a, type: 3}
|
VFXGameObject: {fileID: 8032726150168125150, guid: 65c8920b6d1553a4d885992e8f7dff6a, type: 3}
|
||||||
modifiedDamage: 0
|
modifiedDamage: 0
|
||||||
damage: 100
|
damage: 100
|
||||||
|
@ -180,8 +180,626 @@ MonoBehaviour:
|
|||||||
- Name:
|
- Name:
|
||||||
Entry: 8
|
Entry: 8
|
||||||
Data:
|
Data:
|
||||||
width: 25
|
enviroment:
|
||||||
height: 50
|
- {fileID: 578780478, guid: ed7b7b44956baa54bbe34fd0ec3564cf, type: 3}
|
||||||
|
- {fileID: 1724035136, guid: ef0170e70965e7f46a1a0d4edf4627a1, type: 3}
|
||||||
|
buildings:
|
||||||
|
- {fileID: 7243869784812941501, guid: cc20e28cdf3e7104b99074add5dece53, type: 3}
|
||||||
|
Field:
|
||||||
|
cells:
|
||||||
|
- x: 0
|
||||||
|
z: 0
|
||||||
|
i: 0
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 0
|
||||||
|
i: 1
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 0
|
||||||
|
i: 2
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 0
|
||||||
|
i: 3
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 0
|
||||||
|
i: 4
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 0
|
||||||
|
i: 5
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 0
|
||||||
|
i: 6
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 0
|
||||||
|
i: 7
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 0
|
||||||
|
i: 8
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 0
|
||||||
|
i: 9
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 1
|
||||||
|
i: 10
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 1
|
||||||
|
i: 11
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 1
|
||||||
|
i: 12
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 1
|
||||||
|
i: 13
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 1
|
||||||
|
i: 14
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 1
|
||||||
|
i: 15
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 1
|
||||||
|
i: 16
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 1
|
||||||
|
i: 17
|
||||||
|
IsSpawnPos: 1
|
||||||
|
- x: 8
|
||||||
|
z: 1
|
||||||
|
i: 18
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 1
|
||||||
|
i: 19
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 2
|
||||||
|
i: 20
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 2
|
||||||
|
i: 21
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 2
|
||||||
|
i: 22
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 2
|
||||||
|
i: 23
|
||||||
|
IsSpawnPos: 1
|
||||||
|
- x: 4
|
||||||
|
z: 2
|
||||||
|
i: 24
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 2
|
||||||
|
i: 25
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 2
|
||||||
|
i: 26
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 2
|
||||||
|
i: 27
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 2
|
||||||
|
i: 28
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 3
|
||||||
|
i: 30
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 3
|
||||||
|
i: 31
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 3
|
||||||
|
i: 32
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 3
|
||||||
|
i: 33
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 3
|
||||||
|
i: 34
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 3
|
||||||
|
i: 35
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 3
|
||||||
|
i: 36
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 3
|
||||||
|
i: 37
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 4
|
||||||
|
i: 42
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 4
|
||||||
|
i: 43
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 4
|
||||||
|
i: 44
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 4
|
||||||
|
i: 45
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 4
|
||||||
|
i: 46
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 4
|
||||||
|
i: 47
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 5
|
||||||
|
i: 52
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 5
|
||||||
|
i: 53
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 5
|
||||||
|
i: 54
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 5
|
||||||
|
i: 55
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 6
|
||||||
|
i: 64
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 6
|
||||||
|
i: 65
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 6
|
||||||
|
i: 66
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 7
|
||||||
|
i: 73
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 7
|
||||||
|
i: 74
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 7
|
||||||
|
i: 75
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 7
|
||||||
|
i: 76
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 7
|
||||||
|
i: 77
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 8
|
||||||
|
i: 80
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 8
|
||||||
|
i: 83
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 8
|
||||||
|
i: 84
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 8
|
||||||
|
i: 85
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 8
|
||||||
|
i: 86
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 8
|
||||||
|
i: 87
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 8
|
||||||
|
i: 88
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 9
|
||||||
|
i: 90
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 9
|
||||||
|
i: 92
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 9
|
||||||
|
i: 93
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 9
|
||||||
|
i: 94
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 9
|
||||||
|
i: 95
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 9
|
||||||
|
i: 96
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 9
|
||||||
|
i: 97
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 9
|
||||||
|
i: 98
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 9
|
||||||
|
i: 99
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 10
|
||||||
|
i: 100
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 10
|
||||||
|
i: 101
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 10
|
||||||
|
i: 102
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 10
|
||||||
|
i: 103
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 10
|
||||||
|
i: 104
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 10
|
||||||
|
i: 106
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 10
|
||||||
|
i: 107
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 10
|
||||||
|
i: 108
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 10
|
||||||
|
i: 109
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 11
|
||||||
|
i: 110
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 11
|
||||||
|
i: 111
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 11
|
||||||
|
i: 112
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 11
|
||||||
|
i: 113
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 11
|
||||||
|
i: 116
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 11
|
||||||
|
i: 117
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 11
|
||||||
|
i: 118
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 11
|
||||||
|
i: 119
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 12
|
||||||
|
i: 120
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 12
|
||||||
|
i: 121
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 12
|
||||||
|
i: 122
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 12
|
||||||
|
i: 123
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 12
|
||||||
|
i: 127
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 12
|
||||||
|
i: 128
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 12
|
||||||
|
i: 129
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 13
|
||||||
|
i: 130
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 13
|
||||||
|
i: 131
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 13
|
||||||
|
i: 132
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 13
|
||||||
|
i: 133
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 13
|
||||||
|
i: 136
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 13
|
||||||
|
i: 137
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 13
|
||||||
|
i: 138
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 13
|
||||||
|
i: 139
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 14
|
||||||
|
i: 140
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 14
|
||||||
|
i: 141
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 14
|
||||||
|
i: 142
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 14
|
||||||
|
i: 143
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 14
|
||||||
|
i: 144
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 14
|
||||||
|
i: 147
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 14
|
||||||
|
i: 148
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 14
|
||||||
|
i: 149
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 15
|
||||||
|
i: 150
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 15
|
||||||
|
i: 151
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 15
|
||||||
|
i: 152
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 15
|
||||||
|
i: 153
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 15
|
||||||
|
i: 154
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 15
|
||||||
|
i: 157
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 15
|
||||||
|
i: 158
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 15
|
||||||
|
i: 159
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 16
|
||||||
|
i: 160
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 16
|
||||||
|
i: 161
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 16
|
||||||
|
i: 162
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 16
|
||||||
|
i: 163
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 4
|
||||||
|
z: 16
|
||||||
|
i: 164
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 16
|
||||||
|
i: 167
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 16
|
||||||
|
i: 168
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 16
|
||||||
|
i: 169
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 17
|
||||||
|
i: 170
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 17
|
||||||
|
i: 171
|
||||||
|
IsSpawnPos: 1
|
||||||
|
- x: 2
|
||||||
|
z: 17
|
||||||
|
i: 172
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 17
|
||||||
|
i: 173
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 17
|
||||||
|
i: 176
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 17
|
||||||
|
i: 177
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 17
|
||||||
|
i: 178
|
||||||
|
IsSpawnPos: 1
|
||||||
|
- x: 9
|
||||||
|
z: 17
|
||||||
|
i: 179
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 18
|
||||||
|
i: 180
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 18
|
||||||
|
i: 181
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 18
|
||||||
|
i: 182
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 3
|
||||||
|
z: 18
|
||||||
|
i: 183
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 18
|
||||||
|
i: 186
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 18
|
||||||
|
i: 187
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 18
|
||||||
|
i: 188
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 18
|
||||||
|
i: 189
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 0
|
||||||
|
z: 19
|
||||||
|
i: 190
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 1
|
||||||
|
z: 19
|
||||||
|
i: 191
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 2
|
||||||
|
z: 19
|
||||||
|
i: 192
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 5
|
||||||
|
z: 19
|
||||||
|
i: 195
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 6
|
||||||
|
z: 19
|
||||||
|
i: 196
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 7
|
||||||
|
z: 19
|
||||||
|
i: 197
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 8
|
||||||
|
z: 19
|
||||||
|
i: 198
|
||||||
|
IsSpawnPos: 0
|
||||||
|
- x: 9
|
||||||
|
z: 19
|
||||||
|
i: 199
|
||||||
|
IsSpawnPos: 0
|
||||||
|
height: 20
|
||||||
|
width: 10
|
||||||
|
isSimpleField: 0
|
||||||
|
width: 20
|
||||||
|
height: 20
|
||||||
|
spawnFields:
|
||||||
|
- x: 1
|
||||||
|
z: 5
|
||||||
|
levelPath: Assets/Resources/Maps\Level 1
|
||||||
hexCaptureManaCost: 1
|
hexCaptureManaCost: 1
|
||||||
hexHardCaptureManaCost: 1
|
hexHardCaptureManaCost: 1
|
||||||
hexHardCaptureTime: 1
|
hexHardCaptureTime: 1
|
||||||
|
@ -13,8 +13,8 @@ MonoBehaviour:
|
|||||||
m_Name: UnitsData
|
m_Name: UnitsData
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
_units:
|
_units:
|
||||||
- isPlayer: 0
|
- isPlayer: 1
|
||||||
isAI: 1
|
isAI: 0
|
||||||
spawnPos:
|
spawnPos:
|
||||||
x: 19
|
x: 19
|
||||||
z: 4
|
z: 4
|
||||||
@ -35,8 +35,8 @@ MonoBehaviour:
|
|||||||
maxMana: 1000
|
maxMana: 1000
|
||||||
maxHP: 100
|
maxHP: 100
|
||||||
inventoryCapacity: 4
|
inventoryCapacity: 4
|
||||||
- isPlayer: 1
|
- isPlayer: 0
|
||||||
isAI: 0
|
isAI: 1
|
||||||
spawnPos:
|
spawnPos:
|
||||||
x: -1
|
x: -1
|
||||||
z: 42
|
z: 42
|
||||||
|
8
Assets/Resources/Maps/Level 1.meta
Normal file
8
Assets/Resources/Maps/Level 1.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 75fbb23bee23e4941a9383dce8fe47fa
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Assets/Resources/Maps/Level 1/Buildings.meta
Normal file
8
Assets/Resources/Maps/Level 1/Buildings.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0e04e7c4eccf06143bb90a82fa6e100a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
24325
Assets/Resources/Maps/Level 1/Buildings/(0, 0, 0).prefab
Normal file
24325
Assets/Resources/Maps/Level 1/Buildings/(0, 0, 0).prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cc20e28cdf3e7104b99074add5dece53
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 002887355224d3a4c8904a0c5a6a6103
|
guid: a2bcfe31007158645b179f6c2a99b898
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
@ -1,6 +1,6 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!1 &978287592
|
--- !u!1 &578780478
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@ -8,36 +8,36 @@ GameObject:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 978287594}
|
- component: {fileID: 578780480}
|
||||||
- component: {fileID: 978287593}
|
- component: {fileID: 578780479}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Directional Ligh
|
m_Name: Directional Light
|
||||||
m_TagString: Save
|
m_TagString: Save
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!4 &978287594
|
--- !u!4 &578780480
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 978287592}
|
m_GameObject: {fileID: 578780478}
|
||||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
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_LocalPosition: {x: 8.155565, y: -4.3975315, z: 10.040455}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||||
--- !u!108 &978287593
|
--- !u!108 &578780479
|
||||||
Light:
|
Light:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 978287592}
|
m_GameObject: {fileID: 578780478}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 10
|
serializedVersion: 10
|
||||||
m_Type: 1
|
m_Type: 1
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ed7b7b44956baa54bbe34fd0ec3564cf
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
4871
Assets/Resources/Maps/Level 1/Enviroment/Enviroment.prefab
Normal file
4871
Assets/Resources/Maps/Level 1/Enviroment/Enviroment.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ef0170e70965e7f46a1a0d4edf4627a1
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1
Assets/Resources/Maps/Level 1/map.dat
Normal file
1
Assets/Resources/Maps/Level 1/map.dat
Normal file
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: adcae4dd490cbee419cb5d04308ce870
|
guid: ee01072414a446c4fac1becf7811b3c8
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using Chars;
|
using Chars;
|
||||||
using Data;
|
using Data;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -10,9 +11,6 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class AdsMob : MonoBehaviour
|
public class AdsMob : MonoBehaviour
|
||||||
{
|
{
|
||||||
// private string _revardUnitId = "ca-app-pub-3940256099942544/5224354917";
|
|
||||||
// private RewardedAd _ad;
|
|
||||||
// private AdRequest _request;
|
|
||||||
private UnitInfo _player;
|
private UnitInfo _player;
|
||||||
private UnitFactory _factory;
|
private UnitFactory _factory;
|
||||||
[SerializeField] private Button buttonContinue;
|
[SerializeField] private Button buttonContinue;
|
||||||
@ -21,54 +19,30 @@ public class AdsMob : MonoBehaviour
|
|||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
// _ad = new RewardedAd(_revardUnitId);
|
|
||||||
// _request = new AdRequest.Builder().Build();
|
|
||||||
// _ad.LoadAd(_request);
|
|
||||||
// _ad.OnUserEarnedReward += HandleUser;
|
|
||||||
buttonContinue.onClick.AddListener(Spawn);
|
buttonContinue.onClick.AddListener(Spawn);
|
||||||
canvas.SetActive(false);
|
canvas.SetActive(false);
|
||||||
buttonExit.onClick.AddListener(() =>
|
buttonExit.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
buttonExit.onClick.RemoveAllListeners();
|
buttonExit.onClick.RemoveAllListeners();
|
||||||
SceneManager.LoadScene(0);
|
SceneManager.LoadScene(0);
|
||||||
Time.timeScale = 1f;
|
Time.timeScale = 1f;
|
||||||
});
|
});
|
||||||
//
|
|
||||||
}
|
}
|
||||||
// private void Start() {
|
|
||||||
// ShowAd();
|
|
||||||
// }
|
|
||||||
|
|
||||||
// private void HandleUser(object sender, Reward reward)
|
|
||||||
// {
|
|
||||||
//
|
|
||||||
// _player.Spawn(HexManager.CellByColor[UnitColor.GREY][Random.Range(0, HexManager.CellByColor[UnitColor.GREY].Count - 1)].coordinates);
|
|
||||||
// canvas.SetActive(false);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
private void Spawn()
|
private void Spawn()
|
||||||
{
|
{
|
||||||
var player = _player;
|
var player = _player;
|
||||||
player.spawnPos =
|
var spawnPos =
|
||||||
HexManager.CellByColor[UnitColor.Grey][Random.Range(0, HexManager.CellByColor[UnitColor.Grey].Count - 1)]
|
HexManager.CellByColor[UnitColor.Grey].Where(x => x != null).ToList()[
|
||||||
.coordinates;
|
Random.Range(0, HexManager.CellByColor[UnitColor.Grey].Count - 1)]
|
||||||
|
;
|
||||||
|
|
||||||
_factory.Spawn(player);
|
_factory.Spawn(player, spawnPos);
|
||||||
|
|
||||||
canvas.SetActive(false);
|
canvas.SetActive(false);
|
||||||
Time.timeScale = 1f;
|
Time.timeScale = 1f;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public void ShowAd()
|
|
||||||
// {
|
|
||||||
// //_player = player;
|
|
||||||
// if (_ad.IsLoaded())
|
|
||||||
// {
|
|
||||||
// _ad.Show();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
public void ShowCanvas(UnitInfo player, UnitFactory factory)
|
public void ShowCanvas(UnitInfo player, UnitFactory factory)
|
||||||
{
|
{
|
||||||
@ -76,37 +50,27 @@ public class AdsMob : MonoBehaviour
|
|||||||
_player = player;
|
_player = player;
|
||||||
canvas.SetActive(true);
|
canvas.SetActive(true);
|
||||||
Time.timeScale = 0f;
|
Time.timeScale = 0f;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Respawn(GameObject player)
|
public void Respawn(GameObject player)
|
||||||
{
|
{
|
||||||
List<HexCell> cells = new List<HexCell>();
|
List<HexCell> cells = new List<HexCell>();
|
||||||
cells.AddRange(HexManager.CellByColor[UnitColor.Grey]);
|
cells.AddRange(HexManager.CellByColor[UnitColor.Grey]);
|
||||||
// for (int i = 0; i < cells.Count; i++)
|
|
||||||
// {
|
|
||||||
|
|
||||||
// }
|
|
||||||
foreach (var cell in cells)
|
foreach (var cell in cells)
|
||||||
{
|
{
|
||||||
if (cell.Color == UnitColor.Grey)
|
if (cell.Color == UnitColor.Grey)
|
||||||
{
|
{
|
||||||
var randomCell = Random.Range(0, cells.Count);
|
var randomCell = Random.Range(0, cells.Count);
|
||||||
Vector3 respawnPosition = cells[randomCell].transform.position;
|
Vector3 respawnPosition = cells[randomCell].transform.position;
|
||||||
//cells[randomCell].Color = UnitColor.YELLOW;
|
|
||||||
player = FindObjectOfType<ExtraLife>().gameObject;
|
player = FindObjectOfType<ExtraLife>().gameObject;
|
||||||
|
|
||||||
player.transform.position = respawnPosition;
|
player.transform.position = respawnPosition;
|
||||||
if (player.transform.position == respawnPosition)
|
if (player.transform.position == respawnPosition)
|
||||||
{
|
{
|
||||||
//cell.Color = UnitColor.YELLOW;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// private void OnDisable() {
|
|
||||||
// _ad.OnUserEarnedReward -= HandleUser;
|
|
||||||
// }
|
|
||||||
}
|
}
|
@ -11,6 +11,7 @@ namespace Controller
|
|||||||
{
|
{
|
||||||
_controllers = new Controllers();
|
_controllers = new Controllers();
|
||||||
new GameInit(_controllers, data);
|
new GameInit(_controllers, data);
|
||||||
|
|
||||||
_controllers.Awake();
|
_controllers.Awake();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -38,6 +39,7 @@ namespace Controller
|
|||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
_controllers.Cleanup();
|
_controllers.Cleanup();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -139,6 +139,10 @@ namespace Data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void UnLoadData()
|
||||||
|
{
|
||||||
|
Resources.UnloadAsset(_fieldData);
|
||||||
|
}
|
||||||
|
|
||||||
private static T Load<T>(string resourcesPath) where T : Object =>
|
private static T Load<T>(string resourcesPath) where T : Object =>
|
||||||
Resources.Load<T>(Path.ChangeExtension(resourcesPath, null));
|
Resources.Load<T>(Path.ChangeExtension(resourcesPath, null));
|
||||||
|
22
Assets/Scripts/Data/DefaultLists.cs
Normal file
22
Assets/Scripts/Data/DefaultLists.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using Sirenix.OdinInspector;
|
||||||
|
using Sirenix.Serialization;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Data
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(fileName = "Defaults", menuName = "Data/Defaults", order = 0)]
|
||||||
|
public class DefaultLists : SerializedScriptableObject
|
||||||
|
{
|
||||||
|
[OdinSerialize] private Dictionary<BuildingKeys, GameObject> buildings;
|
||||||
|
|
||||||
|
public Dictionary<BuildingKeys, GameObject> Buildings => buildings;
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum BuildingKeys
|
||||||
|
{
|
||||||
|
None,
|
||||||
|
Tree,
|
||||||
|
Bomb
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Scripts/Data/DefaultLists.cs.meta
Normal file
3
Assets/Scripts/Data/DefaultLists.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 09939b8f9dce4b858d34f89d66c453e6
|
||||||
|
timeCreated: 1644417891
|
@ -1,16 +1,41 @@
|
|||||||
using System.Collections.Generic;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
using HexFiled;
|
using HexFiled;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
|
using Unity.Collections;
|
||||||
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
using Sirenix.OdinInspector.Editor;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace Data
|
namespace Data
|
||||||
{
|
{
|
||||||
[CreateAssetMenu(fileName = "FieldData", menuName = "Data/Field Data")]
|
[CreateAssetMenu(fileName = "FieldData", menuName = "Data/Field Data")]
|
||||||
public class FieldData : SerializedScriptableObject
|
public class FieldData : SerializedScriptableObject
|
||||||
{
|
{
|
||||||
public int width = 6;
|
[SerializeField] private List<GameObject> enviroment;
|
||||||
public int height = 6;
|
[SerializeField] private List<GameObject> buildings;
|
||||||
|
|
||||||
|
[Sirenix.OdinInspector.ReadOnly, ExecuteAlways]
|
||||||
|
public GridToSave Field;
|
||||||
|
|
||||||
|
public bool isSimpleField;
|
||||||
|
[EnableIf("isSimpleField")] public int width = 6;
|
||||||
|
[EnableIf("isSimpleField")] public int height = 6;
|
||||||
|
[EnableIf("isSimpleField")] public List<HexCoordinates> spawnFields;
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
[InlineProperty, DisableIf("isSimpleField")] [InlineButton("OpenLevelList")]
|
||||||
|
#endif
|
||||||
|
public string levelPath;
|
||||||
|
|
||||||
public int hexCaptureManaCost;
|
public int hexCaptureManaCost;
|
||||||
public int hexHardCaptureManaCost;
|
public int hexHardCaptureManaCost;
|
||||||
public float hexHardCaptureTime;
|
public float hexHardCaptureTime;
|
||||||
@ -18,5 +43,86 @@ namespace Data
|
|||||||
public TMP_Text cellLabelPrefab;
|
public TMP_Text cellLabelPrefab;
|
||||||
public GameObject CoordinatesCanvas;
|
public GameObject CoordinatesCanvas;
|
||||||
public Dictionary<UnitColor, CellColor> colors;
|
public Dictionary<UnitColor, CellColor> colors;
|
||||||
|
|
||||||
|
|
||||||
|
public List<GameObject> Enviroment => enviroment;
|
||||||
|
|
||||||
|
public List<GameObject> Buildings => buildings;
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
private void OpenLevelList()
|
||||||
|
{
|
||||||
|
SelectLevelWindow.OpenWindow(SetLevelName);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetLevelName(string name, List<GameObject> enviroment, List<GameObject> buildings,
|
||||||
|
GridToSave serializeField)
|
||||||
|
{
|
||||||
|
this.enviroment = enviroment;
|
||||||
|
this.buildings = buildings;
|
||||||
|
|
||||||
|
levelPath = name;
|
||||||
|
Field = serializeField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SelectLevelWindow : OdinEditorWindow
|
||||||
|
{
|
||||||
|
public static void OpenWindow(Action<string, List<GameObject>, List<GameObject>, GridToSave> SetName)
|
||||||
|
{
|
||||||
|
var loadMapWindow = GetWindow<SelectLevelWindow>();
|
||||||
|
loadMapWindow.Show();
|
||||||
|
loadMapWindow.MapsList = new List<MapPath>();
|
||||||
|
Directory.GetDirectories("Assets/Resources/Maps").ToList().ForEach(x =>
|
||||||
|
{
|
||||||
|
loadMapWindow.MapsList.Add(new MapPath(x, SetName));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
[TableList(IsReadOnly = true, DrawScrollView = false, AlwaysExpanded = true, HideToolbar = true)]
|
||||||
|
public List<MapPath> MapsList;
|
||||||
|
|
||||||
|
public class MapPath
|
||||||
|
{
|
||||||
|
private Action<string, List<GameObject>, List<GameObject>, GridToSave> _setName;
|
||||||
|
|
||||||
|
public MapPath(string path, Action<string, List<GameObject>, List<GameObject>, GridToSave> SetName)
|
||||||
|
{
|
||||||
|
this.path = path;
|
||||||
|
_setName += SetName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string path;
|
||||||
|
|
||||||
|
[Button("Select")]
|
||||||
|
private void Select()
|
||||||
|
{
|
||||||
|
List<GameObject> enviroment = new List<GameObject>();
|
||||||
|
Directory.GetFiles($"{path}/Enviroment", "*.prefab", SearchOption.AllDirectories).ToList().ForEach(
|
||||||
|
x =>
|
||||||
|
{
|
||||||
|
var prefab = x.Replace("\\", "/");
|
||||||
|
var go = (GameObject) AssetDatabase.LoadAssetAtPath(prefab, typeof(GameObject));
|
||||||
|
enviroment.Add(go);
|
||||||
|
});
|
||||||
|
List<GameObject> buildings = new List<GameObject>();
|
||||||
|
Directory.GetFiles($"{path}/Buildings", "*.prefab", SearchOption.AllDirectories).ToList().ForEach(
|
||||||
|
x =>
|
||||||
|
{
|
||||||
|
var prefab = x.Replace("\\", "/");
|
||||||
|
|
||||||
|
var go =(GameObject) AssetDatabase.LoadAssetAtPath(prefab, typeof(GameObject));
|
||||||
|
buildings.Add(go);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
GridToSave data = JsonUtility.FromJson<GridToSave>(File.ReadAllText($"{path}/map.dat"));
|
||||||
|
|
||||||
|
|
||||||
|
_setName.Invoke(path, enviroment, buildings, data);
|
||||||
|
AssetDatabase.SaveAssets();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using Data;
|
using Data;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Sirenix.OdinInspector.Editor;
|
using Sirenix.OdinInspector.Editor;
|
||||||
@ -27,7 +26,7 @@ namespace Editor
|
|||||||
|
|
||||||
|
|
||||||
[MenuItem("Tools/Level Settings")]
|
[MenuItem("Tools/Level Settings")]
|
||||||
private static void OpenWindow()
|
public static void OpenWindow()
|
||||||
{
|
{
|
||||||
GetWindow<LevelSettings>().Show();
|
GetWindow<LevelSettings>().Show();
|
||||||
}
|
}
|
||||||
@ -64,6 +63,7 @@ namespace Editor
|
|||||||
_createNewLevel = new CreateNewLevel();
|
_createNewLevel = new CreateNewLevel();
|
||||||
var tree = new OdinMenuTree();
|
var tree = new OdinMenuTree();
|
||||||
tree.Add("New Level", _createNewLevel);
|
tree.Add("New Level", _createNewLevel);
|
||||||
|
tree.Add("Default Lists",new Defaults());
|
||||||
var pathes = Resources.LoadAll<Data.Data>("Data/");
|
var pathes = Resources.LoadAll<Data.Data>("Data/");
|
||||||
pathes.ForEach(x =>
|
pathes.ForEach(x =>
|
||||||
{
|
{
|
||||||
@ -74,6 +74,25 @@ namespace Editor
|
|||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class Defaults
|
||||||
|
{
|
||||||
|
public Defaults()
|
||||||
|
{
|
||||||
|
def = Resources.Load<DefaultLists>("Data/Defaults");
|
||||||
|
if (def == null)
|
||||||
|
{
|
||||||
|
def = CreateInstance<DefaultLists>();
|
||||||
|
AssetDatabase.CreateAsset(def, "Assets/Resources/Data/Defaults.asset");
|
||||||
|
AssetDatabase.SaveAssets();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[InlineEditor(ObjectFieldMode = InlineEditorObjectFieldModes.Boxed, Expanded = true, DrawHeader = false)]
|
||||||
|
public DefaultLists def;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private class CreateNewLevel
|
private class CreateNewLevel
|
||||||
{
|
{
|
||||||
public CreateNewLevel()
|
public CreateNewLevel()
|
||||||
|
71
Assets/Scripts/Editor/LoadMapWindows.cs
Normal file
71
Assets/Scripts/Editor/LoadMapWindows.cs
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using Sirenix.OdinInspector;
|
||||||
|
using Sirenix.OdinInspector.Editor;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Editor
|
||||||
|
{
|
||||||
|
public class LoadMapWindows : OdinEditorWindow
|
||||||
|
{
|
||||||
|
[MenuItem("Tools/LevelEditor")]
|
||||||
|
private static void OpenWindow()
|
||||||
|
{
|
||||||
|
var loadMapWindow = GetWindow<LoadMapWindows>();
|
||||||
|
loadMapWindow.Show();
|
||||||
|
loadMapWindow.MapsList = new List<Maps>();
|
||||||
|
List<string> pathes = Directory.GetDirectories("Assets/Resources/Maps").ToList();
|
||||||
|
|
||||||
|
var editor = Transform.FindObjectOfType<HexMapEditor>();
|
||||||
|
if (editor == null)
|
||||||
|
{
|
||||||
|
Debug.LogError("Не найден на сцене объект HexMapEditor");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
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()
|
||||||
|
{
|
||||||
|
Directory.Delete(path, true);
|
||||||
|
File.Delete($"{path}.meta");
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
OnMapDeleted.Invoke(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
[InlineProperty()] public string path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
Assets/Scripts/Editor/LoadMapWindows.cs.meta
Normal file
3
Assets/Scripts/Editor/LoadMapWindows.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7cf9118d99144753ae447434edb012e6
|
||||||
|
timeCreated: 1644531556
|
11
Assets/Scripts/GridToSave.cs
Normal file
11
Assets/Scripts/GridToSave.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class GridToSave
|
||||||
|
{
|
||||||
|
public SerializableHexCell[] cells;
|
||||||
|
|
||||||
|
public int height;
|
||||||
|
|
||||||
|
public int width;
|
||||||
|
}
|
3
Assets/Scripts/GridToSave.cs.meta
Normal file
3
Assets/Scripts/GridToSave.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f2c3ef8fafd6495ba51c36a647d380f8
|
||||||
|
timeCreated: 1644538310
|
@ -1,8 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Data;
|
||||||
using DefaultNamespace;
|
using DefaultNamespace;
|
||||||
using Items;
|
using Items;
|
||||||
|
using Sirenix.OdinInspector;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace HexFiled
|
namespace HexFiled
|
||||||
@ -12,47 +15,57 @@ namespace HexFiled
|
|||||||
public HexCoordinates coordinates;
|
public HexCoordinates coordinates;
|
||||||
public (int x, int z, int i) index;
|
public (int x, int z, int i) index;
|
||||||
public event Action<HexCell> OnHexPainted;
|
public event Action<HexCell> OnHexPainted;
|
||||||
|
public bool isSpawnPos;
|
||||||
|
[HideInInspector] public GameObject BuildingInstance;
|
||||||
|
|
||||||
[SerializeField] private HexCell[] neighbors;
|
[SerializeField] private HexCell[] neighbors;
|
||||||
[SerializeField] private Item _item;
|
[SerializeField] private Item _item;
|
||||||
|
[SerializeField, AssetsOnly] public GameObject Building;
|
||||||
|
|
||||||
|
|
||||||
|
private Dictionary<BuildingKeys, GameObject> buildings =>
|
||||||
|
Resources.Load<DefaultLists>(Path.ChangeExtension("Data/Defaults.asset", null)).Buildings;
|
||||||
|
|
||||||
private UnitColor _color;
|
private UnitColor _color;
|
||||||
private MeshRenderer _renderer;
|
private MeshRenderer _renderer;
|
||||||
|
|
||||||
public UnitColor Color => _color;
|
public UnitColor Color => _color;
|
||||||
|
|
||||||
|
private void OnDrawGizmos()
|
||||||
|
{
|
||||||
|
if (isSpawnPos)
|
||||||
|
{
|
||||||
|
Gizmos.DrawIcon(transform.position + new Vector3(0,1,0),"Spawner.png", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Item Item
|
public Item Item
|
||||||
{
|
{
|
||||||
get => _item;
|
get => _item;
|
||||||
set => _item = value;
|
set => _item = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private GameObject _building;
|
|
||||||
|
|
||||||
public GameObject Building
|
[Button("Set Building", ButtonSizes.Gigantic)]
|
||||||
|
public void SetBuilding()
|
||||||
{
|
{
|
||||||
get => _building;
|
if (BuildingInstance != null)
|
||||||
set
|
|
||||||
{
|
{
|
||||||
if (_building == null)
|
DestroyImmediate(Building);
|
||||||
{
|
}
|
||||||
_building = value;
|
|
||||||
}
|
if (Building != null)
|
||||||
|
{
|
||||||
|
BuildingInstance = Instantiate(Building, transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public SerializableHexCell ToSerializibleHexCell()
|
|
||||||
{
|
|
||||||
SerializableHexCell cell = new SerializableHexCell();
|
|
||||||
cell.HexCoordinates = coordinates;
|
|
||||||
cell.index = index;
|
|
||||||
return cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_renderer = GetComponent<MeshRenderer>();
|
_renderer = GetComponent<MeshRenderer>();
|
||||||
_color = UnitColor.Grey;
|
_color = UnitColor.Grey;
|
||||||
|
|
||||||
if (HexManager.CellByColor == null) return;
|
if (HexManager.CellByColor == null) return;
|
||||||
if (!HexManager.CellByColor.ContainsKey(_color))
|
if (!HexManager.CellByColor.ContainsKey(_color))
|
||||||
{
|
{
|
||||||
@ -79,13 +92,12 @@ namespace HexFiled
|
|||||||
public void SetNeighbor(HexDirection direction, HexCell cell)
|
public void SetNeighbor(HexDirection direction, HexCell cell)
|
||||||
{
|
{
|
||||||
neighbors ??= new HexCell[6];
|
neighbors ??= new HexCell[6];
|
||||||
|
|
||||||
neighbors[(int)direction] = cell;
|
neighbors[(int)direction] = cell;
|
||||||
|
|
||||||
if (cell == null) return;
|
if (cell == null) return;
|
||||||
cell.neighbors ??= new HexCell[6];
|
cell.neighbors ??= new HexCell[6];
|
||||||
cell.neighbors[(int)direction.Back()] = this;
|
cell.neighbors[(int)direction.Back()] = this;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PaintHex(UnitColor color, bool isSetting = false)
|
public void PaintHex(UnitColor color, bool isSetting = false)
|
||||||
@ -106,9 +118,9 @@ namespace HexFiled
|
|||||||
if (!isSetting)
|
if (!isSetting)
|
||||||
OnHexPainted?.Invoke(this);
|
OnHexPainted?.Invoke(this);
|
||||||
|
|
||||||
if (_building != null)
|
if (BuildingInstance != null)
|
||||||
{
|
{
|
||||||
Destroy(_building);
|
Destroy(BuildingInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
HexManager.UnitCurrentCell
|
HexManager.UnitCurrentCell
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Data;
|
using Data;
|
||||||
|
using Sirenix.Utilities;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
@ -9,9 +10,8 @@ using Object = UnityEngine.Object;
|
|||||||
namespace HexFiled
|
namespace HexFiled
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class HexGrid
|
public class HexGrid
|
||||||
{
|
{
|
||||||
|
|
||||||
private HexCell[] _cells;
|
private HexCell[] _cells;
|
||||||
private Canvas _gridCanvas;
|
private Canvas _gridCanvas;
|
||||||
private GameObject _baseGameObject;
|
private GameObject _baseGameObject;
|
||||||
@ -20,24 +20,24 @@ namespace HexFiled
|
|||||||
public static float HexDistance => _hexDistance;
|
public static float HexDistance => _hexDistance;
|
||||||
public event Action<HexCell> OnHexPainted;
|
public event Action<HexCell> OnHexPainted;
|
||||||
public event Action OnGridLoaded;
|
public event Action OnGridLoaded;
|
||||||
|
|
||||||
private static Dictionary<UnitColor, CellColor> _colors;
|
private static Dictionary<UnitColor, CellColor> _colors;
|
||||||
private static float _hexDistance;
|
private static float _hexDistance;
|
||||||
public int HexCaptureCost => _fieldData.hexCaptureManaCost;
|
public int HexCaptureCost => _fieldData.hexCaptureManaCost;
|
||||||
|
|
||||||
public int HexHardCaptureCost => _fieldData.hexHardCaptureManaCost;
|
public int HexHardCaptureCost => _fieldData.hexHardCaptureManaCost;
|
||||||
public float HardCaptureTime => _fieldData.hexHardCaptureTime;
|
public float HardCaptureTime => _fieldData.hexHardCaptureTime;
|
||||||
|
public HexCell[] spawnPoses;
|
||||||
|
|
||||||
public static Dictionary<UnitColor, CellColor> Colors => _colors;
|
public static Dictionary<UnitColor, CellColor> Colors => _colors;
|
||||||
|
|
||||||
|
|
||||||
public HexGrid(FieldData fieldData)
|
public HexGrid(FieldData fieldData)
|
||||||
{
|
{
|
||||||
_fieldData = fieldData;
|
_fieldData = fieldData;
|
||||||
_baseGameObject = new GameObject("HexGrid");
|
_baseGameObject = new GameObject("HexGrid");
|
||||||
_colors = fieldData.colors;
|
_colors = fieldData.colors;
|
||||||
|
|
||||||
|
|
||||||
_gridCanvas = Object.Instantiate(fieldData.CoordinatesCanvas, _baseGameObject.transform)
|
_gridCanvas = Object.Instantiate(fieldData.CoordinatesCanvas, _baseGameObject.transform)
|
||||||
.GetComponent<Canvas>();
|
.GetComponent<Canvas>();
|
||||||
@ -45,7 +45,6 @@ namespace HexFiled
|
|||||||
_cells = new HexCell[_fieldData.height * _fieldData.width];
|
_cells = new HexCell[_fieldData.height * _fieldData.width];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public HexCell GetCellFromCoord(HexCoordinates coordinates)
|
public HexCell GetCellFromCoord(HexCoordinates coordinates)
|
||||||
{
|
{
|
||||||
@ -53,14 +52,14 @@ namespace HexFiled
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void CreateCell(int x, int z, int i)
|
private HexCell CreateCell(int x, int z, int i)
|
||||||
{
|
{
|
||||||
Vector3 position;
|
Vector3 position;
|
||||||
position.x = (x + z * 0.5f - z / 2) * (HexMetrics.innerRadius * 2f);
|
position.x = (x + z * 0.5f - z / 2) * (HexMetrics.innerRadius * 2f);
|
||||||
position.y = 0f;
|
position.y = 0f;
|
||||||
position.z = z * (HexMetrics.outerRadius * 1.5f);
|
position.z = z * (HexMetrics.outerRadius * 1.5f);
|
||||||
var cellGO = Object.Instantiate(_fieldData.cellPrefab);
|
var cellGO = Object.Instantiate(_fieldData.cellPrefab);
|
||||||
HexCell cell = _cells[i] = cellGO.GetComponent<HexCell>();
|
HexCell cell = _cells[i] = cellGO.AddComponent<HexCell>();
|
||||||
cell.PaintHex(UnitColor.Grey, true);
|
cell.PaintHex(UnitColor.Grey, true);
|
||||||
cell.transform.SetParent(_baseGameObject.transform, false);
|
cell.transform.SetParent(_baseGameObject.transform, false);
|
||||||
cell.transform.localPosition = position;
|
cell.transform.localPosition = position;
|
||||||
@ -105,18 +104,58 @@ namespace HexFiled
|
|||||||
new Vector2(position.x, position.z);
|
new Vector2(position.x, position.z);
|
||||||
label.text = cell.coordinates.ToStringOnSeparateLines();
|
label.text = cell.coordinates.ToStringOnSeparateLines();
|
||||||
#endif
|
#endif
|
||||||
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public GameObject SpawnField()
|
public GameObject SpawnField()
|
||||||
{
|
{
|
||||||
|
if (!_fieldData.isSimpleField)
|
||||||
for (int z = 0, i = 0; z < _fieldData.height; z++)
|
|
||||||
{
|
{
|
||||||
for (int x = 0; x < _fieldData.width; x++)
|
_cells = new HexCell[_fieldData.Field.height * _fieldData.Field.width];
|
||||||
|
var spawnList = new List<HexCell>();
|
||||||
|
_fieldData.width = _fieldData.Field.width;
|
||||||
|
_fieldData.height = _fieldData.Field.height;
|
||||||
|
_fieldData.Enviroment.ForEach(x =>
|
||||||
{
|
{
|
||||||
CreateCell(x, z, i++);
|
if (x != null)
|
||||||
|
Object.Instantiate(x);
|
||||||
|
});
|
||||||
|
_fieldData.Field.cells.ForEach(cell =>
|
||||||
|
{
|
||||||
|
var hexCell = CreateCell(cell.x, cell.z, cell.i);
|
||||||
|
hexCell.index.x = cell.x;
|
||||||
|
hexCell.index.z = cell.z;
|
||||||
|
hexCell.index.i = cell.i;
|
||||||
|
hexCell.Building =
|
||||||
|
_fieldData.Buildings.Where(x => x != null)
|
||||||
|
.FirstOrDefault(x => x.name.Equals(hexCell.index.ToString()));
|
||||||
|
hexCell.SetBuilding();
|
||||||
|
hexCell.isSpawnPos = cell.IsSpawnPos;
|
||||||
|
if (hexCell.isSpawnPos)
|
||||||
|
spawnList.Add(hexCell);
|
||||||
|
});
|
||||||
|
spawnPoses = spawnList.ToArray();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
for (int z = 0, i = 0; z < _fieldData.height; z++)
|
||||||
|
{
|
||||||
|
for (int x = 0; x < _fieldData.width; x++)
|
||||||
|
{
|
||||||
|
CreateCell(x, z, i++);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
var spawnList = new List<HexCell>();
|
||||||
|
_fieldData.spawnFields.ForEach(x =>
|
||||||
|
{
|
||||||
|
var hex = GetCellFromCoord(x);
|
||||||
|
hex.isSpawnPos = true;
|
||||||
|
spawnList.Add(hex);
|
||||||
|
});
|
||||||
|
|
||||||
|
spawnPoses = spawnList.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
OnGridLoaded?.Invoke();
|
OnGridLoaded?.Invoke();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using Units;
|
using Units;
|
||||||
using Random = UnityEngine.Random;
|
using Random = UnityEngine.Random;
|
||||||
|
|
||||||
@ -16,7 +17,7 @@ namespace HexFiled
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void SetHexColors(HexCell cell)
|
public async void SetHexColors(HexCell cell)
|
||||||
{
|
{
|
||||||
_cell = cell;
|
_cell = cell;
|
||||||
|
|
||||||
@ -24,38 +25,44 @@ namespace HexFiled
|
|||||||
var hexByColorDict = Enum.GetValues(typeof(UnitColor)).Cast<UnitColor>().ToDictionary(color => color,
|
var hexByColorDict = Enum.GetValues(typeof(UnitColor)).Cast<UnitColor>().ToDictionary(color => color,
|
||||||
color => cell.GetListNeighbours().Where(x => x != null && x.Color == color).ToList());
|
color => cell.GetListNeighbours().Where(x => x != null && x.Color == color).ToList());
|
||||||
|
|
||||||
cell.GetListNeighbours().Where(x => x != null && x.Color != cell.Color).ToList().ForEach(neighbour =>
|
|
||||||
|
var neighbours = cell.GetListNeighbours().Where(x => x != null && x.Color != cell.Color).ToArray();
|
||||||
|
|
||||||
|
foreach (var neighbour in neighbours)
|
||||||
{
|
{
|
||||||
if (hexByColorDict.TryGetValue(neighbour.Color, out var value) &&
|
if (hexByColorDict.TryGetValue(neighbour.Color, out var value) &&
|
||||||
value.Count >= 2 && value.Count < 6)
|
value.Count >= 2 && value.Count < 6)
|
||||||
{
|
{
|
||||||
value.ForEach(x =>
|
foreach (var hex in value)
|
||||||
{
|
{
|
||||||
var path = Round(x, null);
|
|
||||||
|
var path = await Round(hex, null);
|
||||||
if (!path.hasPath)
|
if (!path.hasPath)
|
||||||
{
|
{
|
||||||
HexManager.PaintHexList(path.field, cell.Color, 0.05f);
|
HexManager.PaintHexList(path.field, cell.Color, 0.005f);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (neighbour.Color != UnitColor.Grey
|
if (neighbour.Color != UnitColor.Grey
|
||||||
&& HexManager.UnitCurrentCell.TryGetValue(neighbour.Color, out var unit)
|
&& HexManager.UnitCurrentCell.TryGetValue(neighbour.Color, out var unit)
|
||||||
&& hexByColorDict.TryGetValue(neighbour.Color, out var cells)
|
&& hexByColorDict.TryGetValue(neighbour.Color, out var cells)
|
||||||
&& cells.Count >= 2 && cells.Count < 5
|
&& cells.Count >= 2 && cells.Count < 5)
|
||||||
&& !HasPath(neighbour, unit.cell, out var path))
|
|
||||||
{
|
{
|
||||||
HexManager.PaintHexList(path, UnitColor.Grey);
|
var path = await HasPath(neighbour, unit.cell);
|
||||||
|
if (!path.hasPath)
|
||||||
|
HexManager.PaintHexList(path.field, UnitColor.Grey);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private (bool hasPath, List<HexCell> field) Round(HexCell start, HexCell end)
|
private async Task<(bool hasPath, List<HexCell> field)> Round(HexCell start, HexCell end)
|
||||||
{
|
{
|
||||||
if (start == null || start.Color == _cell.Color)
|
if (start == null || start.Color == _cell.Color)
|
||||||
{
|
{
|
||||||
|
await Task.CompletedTask;
|
||||||
return (true, null);
|
return (true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,6 +85,7 @@ namespace HexFiled
|
|||||||
{
|
{
|
||||||
if (neighbour == null)
|
if (neighbour == null)
|
||||||
{
|
{
|
||||||
|
await Task.CompletedTask;
|
||||||
return (true, null);
|
return (true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,6 +93,7 @@ namespace HexFiled
|
|||||||
openList.Add(neighbour);
|
openList.Add(neighbour);
|
||||||
if (neighbour.GetListNeighbours().Contains(end))
|
if (neighbour.GetListNeighbours().Contains(end))
|
||||||
{
|
{
|
||||||
|
await Task.CompletedTask;
|
||||||
return (true, null);
|
return (true, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,6 +108,7 @@ namespace HexFiled
|
|||||||
{
|
{
|
||||||
if (stackIterators.Count == 0)
|
if (stackIterators.Count == 0)
|
||||||
{
|
{
|
||||||
|
await Task.CompletedTask;
|
||||||
return (false, closedList);
|
return (false, closedList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,20 +117,21 @@ namespace HexFiled
|
|||||||
|
|
||||||
if (currentCell.GetListNeighbours().Contains(end))
|
if (currentCell.GetListNeighbours().Contains(end))
|
||||||
{
|
{
|
||||||
|
await Task.CompletedTask;
|
||||||
return (true, null);
|
return (true, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await Task.CompletedTask;
|
||||||
return (false, closedList);
|
return (false, closedList);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool HasPath(HexCell start, HexCell end,
|
private async Task<(bool hasPath, List<HexCell> field)> HasPath(HexCell start, HexCell end)
|
||||||
out List<HexCell> value)
|
|
||||||
{
|
{
|
||||||
if (start.Color == _cell.Color || end.Color == _cell.Color)
|
if (start.Color == _cell.Color || end.Color == _cell.Color)
|
||||||
{
|
{
|
||||||
value = null;
|
await Task.CompletedTask;
|
||||||
return true;
|
return (true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<HexCell> closedList = new List<HexCell>();
|
List<HexCell> closedList = new List<HexCell>();
|
||||||
@ -135,8 +146,8 @@ namespace HexFiled
|
|||||||
{
|
{
|
||||||
if (currentCell == end)
|
if (currentCell == end)
|
||||||
{
|
{
|
||||||
value = null;
|
await Task.CompletedTask;
|
||||||
return true;
|
return (true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<HexCell> openList = currentCell.GetListNeighbours()
|
List<HexCell> openList = currentCell.GetListNeighbours()
|
||||||
@ -155,8 +166,8 @@ namespace HexFiled
|
|||||||
{
|
{
|
||||||
if (stackIterators.Count == 0)
|
if (stackIterators.Count == 0)
|
||||||
{
|
{
|
||||||
value = closedList;
|
await Task.CompletedTask;
|
||||||
return false;
|
return (false, closedList);
|
||||||
}
|
}
|
||||||
|
|
||||||
currentCell = stackIterators.Pop();
|
currentCell = stackIterators.Pop();
|
||||||
@ -164,13 +175,13 @@ namespace HexFiled
|
|||||||
|
|
||||||
if (currentCell.GetListNeighbours().Contains(end))
|
if (currentCell.GetListNeighbours().Contains(end))
|
||||||
{
|
{
|
||||||
value = null;
|
await Task.CompletedTask;
|
||||||
return true;
|
return (true, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
value = closedList;
|
await Task.CompletedTask;
|
||||||
return false;
|
return (false, closedList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,46 +1,26 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.Serialization.Formatters.Binary;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using HexFiled;
|
using HexFiled;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Sirenix.OdinInspector.Editor;
|
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
|
|
||||||
namespace DefaultNamespace
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
|
||||||
|
namespace Editor
|
||||||
{
|
{
|
||||||
[Serializable]
|
public class HexMapEditor : SerializedMonoBehaviour
|
||||||
public class GridToSave
|
|
||||||
{
|
|
||||||
public SerializableHexCell[] cells;
|
|
||||||
|
|
||||||
public int height;
|
|
||||||
|
|
||||||
public int width;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[Serializable]
|
|
||||||
public class SerializableHexCell
|
|
||||||
{
|
|
||||||
public HexCoordinates HexCoordinates;
|
|
||||||
|
|
||||||
public (int x, int z, int i) index;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public class HexMapEditor : MonoBehaviour
|
|
||||||
{
|
{
|
||||||
[SerializeField] private GameObject hexPrefab;
|
[SerializeField] private GameObject hexPrefab;
|
||||||
[SerializeField] private TMP_Text labelPrefab;
|
[SerializeField] private TMP_Text labelPrefab;
|
||||||
[SerializeField] private GameObject gridCanvas;
|
[SerializeField] private GameObject gridCanvas;
|
||||||
[SerializeField] private string levelName;
|
[SerializeField] private string levelName;
|
||||||
|
|
||||||
|
|
||||||
[SerializeField, ListDrawerSettings(
|
[SerializeField, ListDrawerSettings(
|
||||||
CustomAddFunction = "NewLevel",
|
CustomAddFunction = "NewLevel",
|
||||||
CustomRemoveIndexFunction = "RemoveLevel"
|
CustomRemoveIndexFunction = "RemoveLevel"
|
||||||
@ -50,9 +30,9 @@ namespace DefaultNamespace
|
|||||||
[SerializeField] private string pathToMap;
|
[SerializeField] private string pathToMap;
|
||||||
|
|
||||||
private GameObject _gridCanvasInstance;
|
private GameObject _gridCanvasInstance;
|
||||||
private HexCell[] _cells;
|
[SerializeField] private HexCell[] _cells;
|
||||||
private int _width;
|
[SerializeField, HideInInspector] private int _width;
|
||||||
private int _height;
|
[SerializeField, HideInInspector] private int _height;
|
||||||
|
|
||||||
private Color activeColor;
|
private Color activeColor;
|
||||||
private GameObject _fieldBaseGameObject;
|
private GameObject _fieldBaseGameObject;
|
||||||
@ -71,27 +51,19 @@ namespace DefaultNamespace
|
|||||||
_cells = new HexCell[x * y];
|
_cells = new HexCell[x * y];
|
||||||
_width = x;
|
_width = x;
|
||||||
_height = y;
|
_height = y;
|
||||||
|
|
||||||
SpawnField();
|
SpawnField();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Button("Load Map")]
|
|
||||||
private void OpenLoadWindow()
|
#region Load Map
|
||||||
|
|
||||||
|
public void LoadMap(string fileName)
|
||||||
{
|
{
|
||||||
LoadMapWindows.OpenWindow(this);
|
|
||||||
}
|
GridToSave data = JsonUtility.FromJson<GridToSave>(File.ReadAllText($"{fileName}/map.dat"));
|
||||||
|
|
||||||
|
|
||||||
private void LoadMap(string fileName)
|
|
||||||
{
|
|
||||||
BinaryFormatter bf = new BinaryFormatter();
|
|
||||||
FileStream fs = new FileStream(fileName,
|
|
||||||
FileMode.Open);
|
|
||||||
|
|
||||||
GridToSave data = (GridToSave)bf.Deserialize(fs);
|
|
||||||
|
|
||||||
|
|
||||||
fs.Close();
|
|
||||||
DestroyImmediate(_fieldBaseGameObject != null ? _fieldBaseGameObject : GameObject.Find("HexGrid"));
|
DestroyImmediate(_fieldBaseGameObject != null ? _fieldBaseGameObject : GameObject.Find("HexGrid"));
|
||||||
|
|
||||||
DestroyImmediate(_gridCanvasInstance != null ? _gridCanvasInstance : GameObject.Find("CoordCanvas(Clone)"));
|
DestroyImmediate(_gridCanvasInstance != null ? _gridCanvasInstance : GameObject.Find("CoordCanvas(Clone)"));
|
||||||
@ -101,12 +73,22 @@ namespace DefaultNamespace
|
|||||||
_fieldBaseGameObject = new GameObject("HexField");
|
_fieldBaseGameObject = new GameObject("HexField");
|
||||||
_height = data.height;
|
_height = data.height;
|
||||||
_width = data.width;
|
_width = data.width;
|
||||||
_cells = new HexCell[_width * _height];
|
_cells = new HexCell[_height * _width];
|
||||||
|
|
||||||
|
|
||||||
|
var buildings = new List<GameObject>();
|
||||||
|
Directory.GetFiles($"{fileName}/Buildings", "*.prefab", SearchOption.AllDirectories)
|
||||||
|
.ToList().ForEach(building =>
|
||||||
|
{
|
||||||
|
var go = PrefabUtility.LoadPrefabContents(building);
|
||||||
|
go.name = go.name.Replace("(Clone)", "");
|
||||||
|
go.name = go.name.Replace("Buildings\\", "");
|
||||||
|
buildings.Add(go);
|
||||||
|
});
|
||||||
foreach (var cell in data.cells)
|
foreach (var cell in data.cells)
|
||||||
{
|
{
|
||||||
CreateCell(cell.index.x, cell.index.z, cell.index.i);
|
var building = buildings.Find(x => x.name == $"({cell.x}, {cell.z}, {cell.i})");
|
||||||
|
CreateCell(cell, building);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameObject.FindGameObjectsWithTag("Save").Where(x =>
|
GameObject.FindGameObjectsWithTag("Save").Where(x =>
|
||||||
@ -114,11 +96,8 @@ namespace DefaultNamespace
|
|||||||
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
||||||
.ToList().ForEach(DestroyImmediate);
|
.ToList().ForEach(DestroyImmediate);
|
||||||
|
|
||||||
Regex rx = new Regex(@"\b[\\]\w+.dat\b",
|
|
||||||
RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
Directory.GetFiles($"{fileName}/Enviroment", "*.prefab", SearchOption.AllDirectories).ToList().ForEach(x =>
|
||||||
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 prefab = x.Replace("\\", "/");
|
||||||
var go = PrefabUtility.LoadPrefabContents(prefab);
|
var go = PrefabUtility.LoadPrefabContents(prefab);
|
||||||
@ -126,23 +105,50 @@ namespace DefaultNamespace
|
|||||||
instance.name = go.name.Replace("(Clone)", "");
|
instance.name = go.name.Replace("(Clone)", "");
|
||||||
instance.tag = "Save";
|
instance.tag = "Save";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
AssetDatabase.Refresh();
|
||||||
Debug.Log("Game data loaded!");
|
Debug.Log("Game data loaded!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
[Button("Save", ButtonSizes.Gigantic)]
|
[Button("Save", ButtonSizes.Gigantic)]
|
||||||
void SaveGrid()
|
|
||||||
|
#region Save Map
|
||||||
|
|
||||||
|
private void SaveMap()
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory($"{pathToMap}/{levelName}");
|
Directory.CreateDirectory($"{pathToMap}/{levelName}");
|
||||||
Directory.CreateDirectory($"{pathToMap}/{levelName}/Enviroment");
|
Directory.CreateDirectory($"{pathToMap}/{levelName}/Enviroment");
|
||||||
BinaryFormatter bf = new BinaryFormatter();
|
Directory.CreateDirectory($"{pathToMap}/{levelName}/Buildings");
|
||||||
FileStream file = File.Create($"{pathToMap}/{levelName}/{levelName}.dat");
|
|
||||||
GridToSave data = new GridToSave();
|
GridToSave data = new GridToSave();
|
||||||
|
|
||||||
|
DirectoryInfo dir = new DirectoryInfo($"{pathToMap}/{levelName}/Enviroment/");
|
||||||
|
|
||||||
|
foreach (FileInfo f in dir.GetFiles())
|
||||||
|
{
|
||||||
|
f.Delete();
|
||||||
|
}
|
||||||
|
|
||||||
|
dir = new DirectoryInfo($"{pathToMap}/{levelName}/Buildings/");
|
||||||
|
|
||||||
|
foreach (FileInfo f in dir.GetFiles())
|
||||||
|
{
|
||||||
|
f.Delete();
|
||||||
|
}
|
||||||
|
|
||||||
var tmp = new List<SerializableHexCell>();
|
var tmp = new List<SerializableHexCell>();
|
||||||
_cells.ToList().Where(x => x != null).ToList().ForEach(cell =>
|
_cells.ToList().Where(x => x != null).ToList().ForEach(cell =>
|
||||||
{
|
{
|
||||||
tmp.Add(cell == null ? null : cell.ToSerializibleHexCell());
|
var scell = ToSerializibleHexCell(cell);
|
||||||
|
tmp.Add(scell);
|
||||||
|
|
||||||
|
if (cell.BuildingInstance != null)
|
||||||
|
{
|
||||||
|
PrefabUtility.SaveAsPrefabAsset(cell.BuildingInstance,
|
||||||
|
$"{pathToMap}/{levelName}/Buildings/({scell.x}, {scell.z}, {scell.i}).prefab");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -151,7 +157,7 @@ namespace DefaultNamespace
|
|||||||
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
!x.GetComponent<HexMapEditor>() && !x.GetComponent<HexCell>() && x.name != "Hex Cell Label(Clone)")
|
||||||
.ToList().ForEach(x =>
|
.ToList().ForEach(x =>
|
||||||
{
|
{
|
||||||
if(File.Exists($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab"))
|
if (File.Exists($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab"))
|
||||||
File.Delete($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
File.Delete($"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
||||||
PrefabUtility.SaveAsPrefabAsset(x, $"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
PrefabUtility.SaveAsPrefabAsset(x, $"{pathToMap}/{levelName}/Enviroment/{x.name}.prefab");
|
||||||
});
|
});
|
||||||
@ -159,18 +165,36 @@ namespace DefaultNamespace
|
|||||||
data.cells = tmp.ToArray();
|
data.cells = tmp.ToArray();
|
||||||
data.width = _width;
|
data.width = _width;
|
||||||
data.height = _height;
|
data.height = _height;
|
||||||
|
if (File.Exists($"{pathToMap}/{levelName}/map.dat"))
|
||||||
|
{
|
||||||
|
File.Delete($"{pathToMap}/{levelName}/map.dat");
|
||||||
|
}
|
||||||
|
|
||||||
|
File.Create($"{pathToMap}/{levelName}/map.dat").Close();
|
||||||
bf.Serialize(file, data);
|
File.WriteAllText($"{pathToMap}/{levelName}/map.dat", JsonUtility.ToJson(data));
|
||||||
file.Close();
|
|
||||||
|
AssetDatabase.Refresh();
|
||||||
Debug.Log("Game data saved!");
|
Debug.Log("Game data saved!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private SerializableHexCell ToSerializibleHexCell(HexCell cell)
|
||||||
|
{
|
||||||
|
var scell = new SerializableHexCell
|
||||||
|
{
|
||||||
|
x = cell.index.x,
|
||||||
|
z = cell.index.z,
|
||||||
|
i = cell.index.i,
|
||||||
|
IsSpawnPos = cell.isSpawnPos
|
||||||
|
};
|
||||||
|
|
||||||
|
return scell;
|
||||||
|
}
|
||||||
|
|
||||||
private void NewLevel()
|
private void NewLevel()
|
||||||
{
|
{
|
||||||
SaveGrid();
|
SaveMap();
|
||||||
levels.Add(levelName);
|
levels.Add(levelName);
|
||||||
levelName = "";
|
levelName = "";
|
||||||
|
|
||||||
@ -204,24 +228,25 @@ namespace DefaultNamespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateCell(int x, int z, int i, bool isHexCoord = false)
|
private void CreateCell(SerializableHexCell scell, GameObject building)
|
||||||
{
|
{
|
||||||
Vector3 position;
|
Vector3 position;
|
||||||
var cellGO = Object.Instantiate(hexPrefab);
|
var x = scell.x;
|
||||||
|
var z = scell.z;
|
||||||
|
var i = scell.i;
|
||||||
|
|
||||||
|
var cellGO = Instantiate(hexPrefab);
|
||||||
HexCell cell = _cells[i] = cellGO.AddComponent<HexCell>();
|
HexCell cell = _cells[i] = cellGO.AddComponent<HexCell>();
|
||||||
if (isHexCoord)
|
|
||||||
{
|
cell.Building = building;
|
||||||
HexCoordinates coordinates = new HexCoordinates(x, z);
|
cell.isSpawnPos = scell.IsSpawnPos;
|
||||||
position = HexCoordinates.ToPosition(coordinates);
|
|
||||||
(x, z) = HexCoordinates.ToOffsetCoordinates(coordinates);
|
|
||||||
}
|
cell.SetBuilding();
|
||||||
else
|
position.x = (x + z * 0.5f - z / 2) * (HexMetrics.innerRadius * 2f);
|
||||||
{
|
position.y = 0f;
|
||||||
position.x = (x + z * 0.5f - z / 2) * (HexMetrics.innerRadius * 2f);
|
position.z = z * (HexMetrics.outerRadius * 1.5f);
|
||||||
position.y = 0f;
|
cell.coordinates = HexCoordinates.FromOffsetCoordinates(x, z);
|
||||||
position.z = z * (HexMetrics.outerRadius * 1.5f);
|
|
||||||
cell.coordinates = HexCoordinates.FromOffsetCoordinates(x, z);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cell.transform.SetParent(_fieldBaseGameObject.transform, false);
|
cell.transform.SetParent(_fieldBaseGameObject.transform, false);
|
||||||
@ -272,59 +297,14 @@ namespace DefaultNamespace
|
|||||||
{
|
{
|
||||||
for (int x = 0; x < _width; x++)
|
for (int x = 0; x < _width; x++)
|
||||||
{
|
{
|
||||||
CreateCell(x, z, i++);
|
var scell = new SerializableHexCell();
|
||||||
|
scell.x = x;
|
||||||
|
scell.z = z;
|
||||||
|
scell.i = i++;
|
||||||
|
CreateCell(scell, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
@ -32,13 +32,15 @@ namespace Items
|
|||||||
{
|
{
|
||||||
OnItemUsed ??= action;
|
OnItemUsed ??= action;
|
||||||
|
|
||||||
if(_aimInstance == null || !_aimInstance.activeSelf)
|
if(_aimInstance == null)
|
||||||
_aimInstance = Object.Instantiate(aimCanvas, Unit.Instance.transform);
|
_aimInstance = Object.Instantiate(aimCanvas, Unit.Instance.transform);
|
||||||
_aimInstance.SetActive(false);
|
_aimInstance.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Aim(HexDirection direction)
|
public void Aim(HexDirection direction)
|
||||||
{
|
{
|
||||||
|
if(_aimInstance == null)
|
||||||
|
_aimInstance = Object.Instantiate(aimCanvas, Unit.Instance.transform);
|
||||||
_aimInstance.SetActive(true);
|
_aimInstance.SetActive(true);
|
||||||
_aimInstance.transform.LookAt(HexManager.UnitCurrentCell[Unit.Color].cell
|
_aimInstance.transform.LookAt(HexManager.UnitCurrentCell[Unit.Color].cell
|
||||||
.GetNeighbor(direction).transform);
|
.GetNeighbor(direction).transform);
|
||||||
|
48
Assets/Scripts/Items/ItemViews/RocketView.cs
Normal file
48
Assets/Scripts/Items/ItemViews/RocketView.cs
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using AI;
|
||||||
|
using DG.Tweening;
|
||||||
|
using HexFiled;
|
||||||
|
using Sirenix.OdinInspector;
|
||||||
|
using Sirenix.Serialization;
|
||||||
|
using Units;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Items.ItemViews
|
||||||
|
{
|
||||||
|
public class RocketView : SerializedMonoBehaviour, ISetUp
|
||||||
|
{
|
||||||
|
[OdinSerialize] private Dictionary<UnitColor, GameObject> Rockets;
|
||||||
|
private List<GameObject> listUnits;
|
||||||
|
[SerializeField] private GameObject _unit;
|
||||||
|
[SerializeField] private UnitColor _color;
|
||||||
|
|
||||||
|
public void SetUp(Unit unit)
|
||||||
|
{
|
||||||
|
_unit = unit.Instance;
|
||||||
|
_color = unit.Color;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GetNearestUnit()
|
||||||
|
{
|
||||||
|
Rockets[_color].SetActive(true);
|
||||||
|
listUnits = new List<GameObject>();
|
||||||
|
listUnits.AddRange(HexManager.UnitCurrentCell.Where(x => x.Key != _color).ToList().Select(x => x.Value.unit.Instance));
|
||||||
|
listUnits.Sort((x, y) =>
|
||||||
|
Vector3.Distance(x.transform.position, _unit.transform.position).CompareTo(
|
||||||
|
Vector3.Distance(y.transform.position, _unit.transform.position)));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
if (_unit != null)
|
||||||
|
{
|
||||||
|
GetNearestUnit();
|
||||||
|
transform.DOKill();
|
||||||
|
transform.LookAt(listUnits.First().transform);
|
||||||
|
transform.DOMove(listUnits.First().transform.position, Vector3.Distance(listUnits.First().transform.position, _unit.transform.position)*0.2f).SetEase(Ease.Linear);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Scripts/Items/ItemViews/RocketView.cs.meta
Normal file
11
Assets/Scripts/Items/ItemViews/RocketView.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a6c40bc90bdc66a4bbe77ada83a89ffa
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -43,6 +43,7 @@ namespace Items
|
|||||||
var cell = HexManager.UnitCurrentCell[Unit.Color].cell.GetNeighbor(_direction);
|
var cell = HexManager.UnitCurrentCell[Unit.Color].cell.GetNeighbor(_direction);
|
||||||
Unit.RotateUnit(new Vector2((cell.transform.position - Unit.Instance.transform.position).normalized.x,
|
Unit.RotateUnit(new Vector2((cell.transform.position - Unit.Instance.transform.position).normalized.x,
|
||||||
(cell.transform.position - Unit.Instance.transform.position).normalized.z));
|
(cell.transform.position - Unit.Instance.transform.position).normalized.z));
|
||||||
|
_weapon.objectToThrow.GetComponent<ISetUp>().SetUp(Unit);
|
||||||
_aimInstance.SetActive(false);
|
_aimInstance.SetActive(false);
|
||||||
var dir = DirectionHelper.DirectionTo(Unit.Instance.transform.position, cell.transform.position);
|
var dir = DirectionHelper.DirectionTo(Unit.Instance.transform.position, cell.transform.position);
|
||||||
_weapon.Fire(Unit.Instance.transform, new Vector2(dir.x, dir.z));
|
_weapon.Fire(Unit.Instance.transform, new Vector2(dir.x, dir.z));
|
||||||
|
11
Assets/Scripts/SerializableHexCell.cs
Normal file
11
Assets/Scripts/SerializableHexCell.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class SerializableHexCell
|
||||||
|
{
|
||||||
|
public int x;
|
||||||
|
public int z;
|
||||||
|
public int i;
|
||||||
|
|
||||||
|
public bool IsSpawnPos;
|
||||||
|
}
|
3
Assets/Scripts/SerializableHexCell.cs.meta
Normal file
3
Assets/Scripts/SerializableHexCell.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 01dde04228b545c6a465eed98a8a4713
|
||||||
|
timeCreated: 1644538298
|
@ -206,11 +206,12 @@ namespace Units
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Spawn(HexCoordinates hexCoordinates)
|
public void Spawn(HexCoordinates hexCoordinates, HexCell spawnCell = null)
|
||||||
{
|
{
|
||||||
if (!_isAlive)
|
if (!_isAlive)
|
||||||
{
|
{
|
||||||
_cell = _hexGrid.GetCellFromCoord(hexCoordinates);
|
_cell = spawnCell != null ? spawnCell : _hexGrid.GetCellFromCoord(hexCoordinates);
|
||||||
|
|
||||||
_cell.PaintHex(_data.color, true);
|
_cell.PaintHex(_data.color, true);
|
||||||
_cell.GetListNeighbours().ForEach(x =>
|
_cell.GetListNeighbours().ForEach(x =>
|
||||||
{
|
{
|
||||||
@ -309,7 +310,7 @@ namespace Units
|
|||||||
|
|
||||||
public void UseItem(Item item)
|
public void UseItem(Item item)
|
||||||
{
|
{
|
||||||
if (_inventory.Contains(item))
|
if (item.Type == ItemType.ATTACK)
|
||||||
_inventory.Remove(item);
|
_inventory.Remove(item);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using CamControl;
|
using CamControl;
|
||||||
using Controller;
|
using Controller;
|
||||||
using Data;
|
using Data;
|
||||||
@ -32,11 +33,23 @@ namespace Chars
|
|||||||
|
|
||||||
public void SpawnList(List<UnitInfo> units)
|
public void SpawnList(List<UnitInfo> units)
|
||||||
{
|
{
|
||||||
units.ForEach(Spawn);
|
units.ForEach(x => Spawn(x));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Spawn(UnitInfo unitInfo)
|
public void Spawn(UnitInfo unitInfo, HexCell spawnHex = null)
|
||||||
{
|
{
|
||||||
|
HexCell spawnPos;
|
||||||
|
if (spawnHex == null)
|
||||||
|
{
|
||||||
|
spawnPos = _hexGrid.spawnPoses.ToList().FirstOrDefault(x => x.isSpawnPos);
|
||||||
|
if (spawnPos == null)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
spawnPos = spawnHex;
|
||||||
|
}
|
||||||
|
|
||||||
if (unitInfo.isPlayer)
|
if (unitInfo.isPlayer)
|
||||||
{
|
{
|
||||||
var player = new Unit(unitInfo, _chosenWeapon, _hexGrid);
|
var player = new Unit(unitInfo, _chosenWeapon, _hexGrid);
|
||||||
@ -61,8 +74,9 @@ namespace Chars
|
|||||||
player.OnDeath += unit => _uiController.CheatMenu.OnPlayerDeath();
|
player.OnDeath += unit => _uiController.CheatMenu.OnPlayerDeath();
|
||||||
|
|
||||||
player.OnDeath += p => _uiController.AdsMob.ShowCanvas(unitInfo, this);
|
player.OnDeath += p => _uiController.AdsMob.ShowCanvas(unitInfo, this);
|
||||||
|
|
||||||
player.Spawn(unitInfo.spawnPos);
|
player.Spawn(spawnPos.coordinates, spawnPos);
|
||||||
|
spawnPos.isSpawnPos = false;
|
||||||
player.UnitView.SetBar(_data.UnitData.PlayerBarCanvas, _data.UnitData.AttackAimCanvas);
|
player.UnitView.SetBar(_data.UnitData.PlayerBarCanvas, _data.UnitData.AttackAimCanvas);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -77,7 +91,8 @@ namespace Chars
|
|||||||
enemy.OnDeath += x => { _controllers.Remove(agent); };
|
enemy.OnDeath += x => { _controllers.Remove(agent); };
|
||||||
}
|
}
|
||||||
|
|
||||||
enemy.Spawn(unitInfo.spawnPos);
|
enemy.Spawn(spawnPos.coordinates, spawnPos);
|
||||||
|
spawnPos.isSpawnPos = false;
|
||||||
|
|
||||||
enemy.UnitView.SetBar(_data.UnitData.BotBarCanvas, _data.UnitData.AttackAimCanvas);
|
enemy.UnitView.SetBar(_data.UnitData.BotBarCanvas, _data.UnitData.AttackAimCanvas);
|
||||||
}
|
}
|
||||||
|
@ -646,7 +646,7 @@ PlayerSettings:
|
|||||||
webGLThreadsSupport: 0
|
webGLThreadsSupport: 0
|
||||||
webGLDecompressionFallback: 0
|
webGLDecompressionFallback: 0
|
||||||
scriptingDefineSymbols:
|
scriptingDefineSymbols:
|
||||||
1: UNITY_POST_PROCESSING_STACK_V2
|
1: UNITY_POST_PROCESSING_STACK_V2;ODIN_INSPECTOR;ODIN_INSPECTOR_3
|
||||||
7: AH_SCRIPT_ALLOW;UNITY_POST_PROCESSING_STACK_V2;ODIN_INSPECTOR;ODIN_INSPECTOR_3
|
7: AH_SCRIPT_ALLOW;UNITY_POST_PROCESSING_STACK_V2;ODIN_INSPECTOR;ODIN_INSPECTOR_3
|
||||||
13: UNITY_POST_PROCESSING_STACK_V2
|
13: UNITY_POST_PROCESSING_STACK_V2
|
||||||
14: UNITY_POST_PROCESSING_STACK_V2
|
14: UNITY_POST_PROCESSING_STACK_V2
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user