Target & dynamic reward System V1.0
太多了...总之能用了,就这样吧,也懒得用英文写了(;´Д`) ParameterContainer用于管理所有的Reward和Parameter. TargetController用于生成目标,然后再让SceneBlockContainer实际生成目标块,并且兼顾reward计算功能和目标观察结果的获取. EnemyContainer用于生成和删除敌人. SceneBlockContainer用于生成和删除目标块. States用于管理HP. SceneBlock用于管理目标块的...一堆东西,比如目标大小,目标区内人数等和目标所属状态等.
This commit is contained in:
parent
6e32da8b64
commit
25eac00c53
@ -1,315 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &589623276620307787
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 2549211768804229017}
|
|
||||||
- component: {fileID: 1052484998016832026}
|
|
||||||
- component: {fileID: 2381076109874992468}
|
|
||||||
- component: {fileID: 1721641481729382250}
|
|
||||||
- component: {fileID: 3332178016245946598}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: 1x20Cube
|
|
||||||
m_TagString: Wall
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &2549211768804229017
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 589623276620307787}
|
|
||||||
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: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &1052484998016832026
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 589623276620307787}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_MeshFormatVersion: 1
|
|
||||||
m_Faces:
|
|
||||||
- m_Indexes: 000000000100000002000000010000000300000002000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 040000000500000006000000050000000700000006000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 100000001100000012000000110000001300000012000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 140000001500000016000000150000001700000016000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
m_SharedVertices:
|
|
||||||
- m_Vertices: 000000000d00000016000000
|
|
||||||
- m_Vertices: 010000000400000017000000
|
|
||||||
- m_Vertices: 020000000f00000010000000
|
|
||||||
- m_Vertices: 030000000600000011000000
|
|
||||||
- m_Vertices: 050000000800000015000000
|
|
||||||
- m_Vertices: 070000000a00000013000000
|
|
||||||
- m_Vertices: 090000000c00000014000000
|
|
||||||
- m_Vertices: 0b0000000e00000012000000
|
|
||||||
m_SharedTextures: []
|
|
||||||
m_Positions:
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 20, y: 0, z: 0}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 20, y: 2, z: 0}
|
|
||||||
- {x: 20, y: 0, z: 0}
|
|
||||||
- {x: 20, y: 0, z: -1}
|
|
||||||
- {x: 20, y: 2, z: 0}
|
|
||||||
- {x: 20, y: 2, z: -1}
|
|
||||||
- {x: 20, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 20, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 20, y: 2, z: 0}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 20, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 20, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 20, y: 0, z: 0}
|
|
||||||
m_Textures0:
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -20, y: 0}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: -20, y: 2}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -1, y: 0}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: -1, y: 2}
|
|
||||||
- {x: 20, y: 0}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 20, y: 2}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: 1, y: 0}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 1, y: 2}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 20, y: 0}
|
|
||||||
- {x: 0, y: -1}
|
|
||||||
- {x: 20, y: -1}
|
|
||||||
- {x: 0, y: -1}
|
|
||||||
- {x: -20, y: -1}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -20, y: 0}
|
|
||||||
m_Textures2: []
|
|
||||||
m_Textures3: []
|
|
||||||
m_Tangents:
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
m_Colors: []
|
|
||||||
m_UnwrapParameters:
|
|
||||||
m_HardAngle: 88
|
|
||||||
m_PackMargin: 20
|
|
||||||
m_AngleError: 8
|
|
||||||
m_AreaError: 15
|
|
||||||
m_PreserveMeshAssetOnDestroy: 0
|
|
||||||
assetGuid:
|
|
||||||
m_Mesh: {fileID: 0}
|
|
||||||
m_IsSelectable: 1
|
|
||||||
m_SelectedFaces:
|
|
||||||
m_SelectedEdges: []
|
|
||||||
m_SelectedVertices:
|
|
||||||
--- !u!23 &2381076109874992468
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 589623276620307787}
|
|
||||||
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: e7fec641232aada4b9419c7ece6a7203, 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: 2
|
|
||||||
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!33 &1721641481729382250
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 589623276620307787}
|
|
||||||
m_Mesh: {fileID: 0}
|
|
||||||
--- !u!64 &3332178016245946598
|
|
||||||
MeshCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 589623276620307787}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 4
|
|
||||||
m_Convex: 0
|
|
||||||
m_CookingOptions: 30
|
|
||||||
m_Mesh: {fileID: 0}
|
|
@ -1,315 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &8292847989533250525
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 8038673802331550199}
|
|
||||||
- component: {fileID: 5046978806096422044}
|
|
||||||
- component: {fileID: 8722606809633521714}
|
|
||||||
- component: {fileID: 5062173087561975370}
|
|
||||||
- component: {fileID: 6727079418557461791}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: 1x5Cube
|
|
||||||
m_TagString: Wall
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &8038673802331550199
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 8292847989533250525}
|
|
||||||
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: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &5046978806096422044
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 8292847989533250525}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_MeshFormatVersion: 1
|
|
||||||
m_Faces:
|
|
||||||
- m_Indexes: 000000000100000002000000010000000300000002000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 040000000500000006000000050000000700000006000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 100000001100000012000000110000001300000012000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
- m_Indexes: 140000001500000016000000150000001700000016000000
|
|
||||||
m_SmoothingGroup: 0
|
|
||||||
m_Uv:
|
|
||||||
m_UseWorldSpace: 0
|
|
||||||
m_FlipU: 0
|
|
||||||
m_FlipV: 0
|
|
||||||
m_SwapUV: 0
|
|
||||||
m_Fill: 1
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Rotation: 0
|
|
||||||
m_Anchor: 9
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_SubmeshIndex: 0
|
|
||||||
m_ManualUV: 0
|
|
||||||
elementGroup: -1
|
|
||||||
m_TextureGroup: -1
|
|
||||||
m_SharedVertices:
|
|
||||||
- m_Vertices: 000000000d00000016000000
|
|
||||||
- m_Vertices: 010000000400000017000000
|
|
||||||
- m_Vertices: 020000000f00000010000000
|
|
||||||
- m_Vertices: 030000000600000011000000
|
|
||||||
- m_Vertices: 050000000800000015000000
|
|
||||||
- m_Vertices: 070000000a00000013000000
|
|
||||||
- m_Vertices: 090000000c00000014000000
|
|
||||||
- m_Vertices: 0b0000000e00000012000000
|
|
||||||
m_SharedTextures: []
|
|
||||||
m_Positions:
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 5, y: 0, z: 0}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 5, y: 2, z: 0}
|
|
||||||
- {x: 5, y: 0, z: 0}
|
|
||||||
- {x: 5, y: 0, z: -1}
|
|
||||||
- {x: 5, y: 2, z: 0}
|
|
||||||
- {x: 5, y: 2, z: -1}
|
|
||||||
- {x: 5, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 5, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 0, y: 2, z: 0}
|
|
||||||
- {x: 5, y: 2, z: 0}
|
|
||||||
- {x: 0, y: 2, z: -1}
|
|
||||||
- {x: 5, y: 2, z: -1}
|
|
||||||
- {x: 0, y: 0, z: -1}
|
|
||||||
- {x: 5, y: 0, z: -1}
|
|
||||||
- {x: 0, y: 0, z: 0}
|
|
||||||
- {x: 5, y: 0, z: 0}
|
|
||||||
m_Textures0:
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -5, y: 0}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: -5, y: 2}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -1, y: 0}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: -1, y: 2}
|
|
||||||
- {x: 5, y: 0}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 5, y: 2}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: 1, y: 0}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 1, y: 2}
|
|
||||||
- {x: 0, y: 2}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: 5, y: 0}
|
|
||||||
- {x: 0, y: -1}
|
|
||||||
- {x: 5, y: -1}
|
|
||||||
- {x: 0, y: -1}
|
|
||||||
- {x: -5, y: -1}
|
|
||||||
- {x: 0, y: 0}
|
|
||||||
- {x: -5, y: 0}
|
|
||||||
m_Textures2: []
|
|
||||||
m_Textures3: []
|
|
||||||
m_Tangents:
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: 1, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 0, y: 0, z: -1, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: 1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
- {x: -1, y: 0, z: 0, w: -1}
|
|
||||||
m_Colors: []
|
|
||||||
m_UnwrapParameters:
|
|
||||||
m_HardAngle: 88
|
|
||||||
m_PackMargin: 20
|
|
||||||
m_AngleError: 8
|
|
||||||
m_AreaError: 15
|
|
||||||
m_PreserveMeshAssetOnDestroy: 0
|
|
||||||
assetGuid:
|
|
||||||
m_Mesh: {fileID: 0}
|
|
||||||
m_IsSelectable: 1
|
|
||||||
m_SelectedFaces:
|
|
||||||
m_SelectedEdges: []
|
|
||||||
m_SelectedVertices:
|
|
||||||
--- !u!23 &8722606809633521714
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 8292847989533250525}
|
|
||||||
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: e7fec641232aada4b9419c7ece6a7203, 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: 2
|
|
||||||
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!33 &5062173087561975370
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 8292847989533250525}
|
|
||||||
m_Mesh: {fileID: 0}
|
|
||||||
--- !u!64 &6727079418557461791
|
|
||||||
MeshCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 8292847989533250525}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 4
|
|
||||||
m_Convex: 0
|
|
||||||
m_CookingOptions: 30
|
|
||||||
m_Mesh: {fileID: 0}
|
|
@ -1,71 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using TMPro;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using XCharts.Runtime;
|
|
||||||
|
|
||||||
public class EnviromentUIControl : MonoBehaviour
|
|
||||||
{
|
|
||||||
public GameObject agentObj;
|
|
||||||
public TextMeshProUGUI remainTimeText;
|
|
||||||
public TextMeshProUGUI winLoseText;
|
|
||||||
private AgentWithGun agentScript;
|
|
||||||
public LineChart realTimeRewardChart;
|
|
||||||
public GameObject chartContainer;
|
|
||||||
private float overTime = 0f;
|
|
||||||
private int step = 0;
|
|
||||||
private bool resultActive = false;
|
|
||||||
|
|
||||||
// Start is called before the first frame update
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
agentScript = agentObj.GetComponent<AgentWithGun>();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
int remainTime = agentScript.remainTime;
|
|
||||||
int finishedState = agentScript.finishedState;// 1 = win,2 = lose,0 = not dont
|
|
||||||
remainTimeText.text = "RemainTime:" + remainTime.ToString();
|
|
||||||
if (finishedState == 1)
|
|
||||||
{
|
|
||||||
//Win
|
|
||||||
Debug.Log("win");
|
|
||||||
winLoseText.text = "Win";
|
|
||||||
winLoseText.color = Color.green;
|
|
||||||
overTime = Time.time;
|
|
||||||
resultActive = true;
|
|
||||||
}
|
|
||||||
else if (finishedState == 2)
|
|
||||||
{
|
|
||||||
//lose
|
|
||||||
Debug.Log("lose");
|
|
||||||
winLoseText.text = "Lose";
|
|
||||||
winLoseText.color = Color.red;
|
|
||||||
overTime = Time.time;
|
|
||||||
resultActive = true;
|
|
||||||
}
|
|
||||||
else if (finishedState == 0 && resultActive && Time.time - overTime >= 1)
|
|
||||||
{
|
|
||||||
Debug.Log("clear");
|
|
||||||
winLoseText.text = "";
|
|
||||||
winLoseText.color = Color.white;
|
|
||||||
resultActive = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public void updateChart(float reward)
|
|
||||||
{
|
|
||||||
step += 1;
|
|
||||||
realTimeRewardChart.AddXAxisData(Convert.ToString(step));
|
|
||||||
realTimeRewardChart.AddData(0, reward);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void initChart()
|
|
||||||
{
|
|
||||||
realTimeRewardChart.RemoveData();
|
|
||||||
realTimeRewardChart.AddSerie<Line>("Rewards");
|
|
||||||
}
|
|
||||||
}
|
|
@ -90,7 +90,7 @@ TextureImporter:
|
|||||||
secondaryTextures: []
|
secondaryTextures: []
|
||||||
spritePackingTag:
|
spritePackingTag:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 1
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
@ -23,6 +23,7 @@ TextureImporter:
|
|||||||
isReadable: 0
|
isReadable: 0
|
||||||
streamingMipmaps: 0
|
streamingMipmaps: 0
|
||||||
streamingMipmapsPriority: 0
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
grayScaleToAlpha: 0
|
grayScaleToAlpha: 0
|
||||||
generateCubemap: 6
|
generateCubemap: 6
|
||||||
cubemapConvolution: 0
|
cubemapConvolution: 0
|
||||||
@ -31,9 +32,9 @@ TextureImporter:
|
|||||||
maxTextureSize: 2048
|
maxTextureSize: 2048
|
||||||
textureSettings:
|
textureSettings:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
filterMode: -1
|
filterMode: 1
|
||||||
aniso: -1
|
aniso: 1
|
||||||
mipBias: -100
|
mipBias: 0
|
||||||
wrapU: 0
|
wrapU: 0
|
||||||
wrapV: 0
|
wrapV: 0
|
||||||
wrapW: 0
|
wrapW: 0
|
||||||
@ -54,9 +55,12 @@ TextureImporter:
|
|||||||
textureType: 0
|
textureType: 0
|
||||||
textureShape: 1
|
textureShape: 1
|
||||||
singleChannelComponent: 0
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
maxTextureSizeSet: 0
|
maxTextureSizeSet: 0
|
||||||
compressionQualitySet: 0
|
compressionQualitySet: 0
|
||||||
textureFormatSet: 0
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
applyGammaDecoding: 1
|
applyGammaDecoding: 1
|
||||||
platformSettings:
|
platformSettings:
|
||||||
- serializedVersion: 3
|
- serializedVersion: 3
|
||||||
|
BIN
Assets/Img/FirebaseCircle.png
Normal file
BIN
Assets/Img/FirebaseCircle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
96
Assets/Img/FirebaseCircle.png.meta
Normal file
96
Assets/Img/FirebaseCircle.png.meta
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2e8a4c324d97191458208abd2efd1c01
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 11
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
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: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
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: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
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:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
8
Assets/Img/Materials.meta
Normal file
8
Assets/Img/Materials.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3e31c37a46ea8d341809aa061deb76c4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
79
Assets/Img/Materials/FirebaseCircle.mat
Normal file
79
Assets/Img/Materials/FirebaseCircle.mat
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
%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: FirebaseCircle
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _ALPHABLEND_ON
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 2e8a4c324d97191458208abd2efd1c01, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 2
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 5
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 0.22745098}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
8
Assets/Img/Materials/FirebaseCircle.mat.meta
Normal file
8
Assets/Img/Materials/FirebaseCircle.mat.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 64ef717bc697ed049aa24dd03708ed11
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
Assets/Img/White.png
Normal file
BIN
Assets/Img/White.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
108
Assets/Img/White.png.meta
Normal file
108
Assets/Img/White.png.meta
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d29a01ced066fbe4f8366788af0ecb1a
|
||||||
|
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
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
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:
|
@ -1 +1 @@
|
|||||||
{"count":1,"self":16.103486399999998,"total":16.3423828,"children":{"InitializeActuators":{"count":2,"self":0.0010612,"total":0.0010612,"children":null},"InitializeSensors":{"count":2,"self":0.0009988,"total":0.0009988,"children":null},"AgentSendState":{"count":587,"self":0.0040049,"total":0.085422,"children":{"CollectObservations":{"count":587,"self":0.076905199999999993,"total":0.076905199999999993,"children":null},"WriteActionMask":{"count":587,"self":0.0020049,"total":0.0020049,"children":null},"RequestDecision":{"count":587,"self":0.0025069999999999997,"total":0.0025069999999999997,"children":null}}},"DecideAction":{"count":587,"self":0.0025057,"total":0.0025057,"children":null},"AgentAct":{"count":587,"self":0.1474095,"total":0.1474095,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1667836409","unity_version":"2020.3.19f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2020.3.19f1\\Editor\\Unity.exe -projectpath C:\\Users\\UCUNI\\OneDrive\\Unity\\ML-Agents\\Aimbot-ParallelEnv -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-ltWC4XfMOryOcf6Rv5M_v -hubSessionId 51c1abf0-5eb2-11ed-8466-df699ac2cf5e -accessToken WUTYJ4m1taxrd8ECwP_t1NT5DeGPnRQj_eaEtoYw7Ps00ef","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"InGame","end_time_seconds":"1667836425"}}
|
{"count":1,"self":42.474256,"total":42.853059699999996,"children":{"InitializeActuators":{"count":2,"self":0.0015008999999999999,"total":0.0015008999999999999,"children":null},"InitializeSensors":{"count":2,"self":0.0015055,"total":0.0015055,"children":null},"AgentSendState":{"count":1893,"self":0.010512599999999999,"total":0.2746114,"children":{"CollectObservations":{"count":1893,"self":0.2560784,"total":0.2560784,"children":null},"WriteActionMask":{"count":1893,"self":0.0025101999999999998,"total":0.0025101999999999998,"children":null},"RequestDecision":{"count":1893,"self":0.0055102,"total":0.0055102,"children":null}}},"DecideAction":{"count":1893,"self":0.0115018,"total":0.0115018,"children":null},"AgentAct":{"count":1893,"self":0.089183,"total":0.089183,"children":null}},"gauges":{"AKMAgent.CumulativeReward":{"count":2,"max":4055.03345,"min":0,"runningAverage":2027.51672,"value":4055.03345,"weightedAverage":1013.75836}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1669579002","unity_version":"2021.3.14f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.14f1\\Editor\\Unity.exe -projectpath C:\\Users\\UCUNI\\OneDrive\\Unity\\ML-Agents\\Aimbot-ParallelEnv -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-UCUNI -hubSessionId de16dbe0-6cd4-11ed-9c29-f9646c339c20 -accessToken jhaPd1UC_HGOPnXJPiNZkp5sX2Qlp2OZR2Lco0D0vEI00ef","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"InGame","end_time_seconds":"1669579045"}}
|
8
Assets/Prefeb/AttackBlock.meta
Normal file
8
Assets/Prefeb/AttackBlock.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 63a52201b90e4894eafc86e19ce23e54
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2032
Assets/Prefeb/AttackBlock/Attack-0.prefab
Normal file
2032
Assets/Prefeb/AttackBlock/Attack-0.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 21c16987bc303a7479256130e9b40fbb
|
guid: 1aa83139c6ee6c04ab9b7a3762261464
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
1874
Assets/Prefeb/AttackBlock/Attack-BigRoom-1.prefab
Normal file
1874
Assets/Prefeb/AttackBlock/Attack-BigRoom-1.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 7aa87ef090c46f54480d5e04fad6a346
|
guid: db8ab6ee064adec44ab7464ed4286e79
|
||||||
PrefabImporter:
|
PrefabImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
2666
Assets/Prefeb/AttackBlock/Attack-BigRoom-2.prefab
Normal file
2666
Assets/Prefeb/AttackBlock/Attack-BigRoom-2.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Prefeb/AttackBlock/Attack-BigRoom-2.prefab.meta
Normal file
7
Assets/Prefeb/AttackBlock/Attack-BigRoom-2.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6bc3ae5d05b62d848ae7fc8961c2544b
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1874
Assets/Prefeb/AttackBlock/Attack-BigRoom-littleArea.prefab
Normal file
1874
Assets/Prefeb/AttackBlock/Attack-BigRoom-littleArea.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08f07a884c1a5a44c99857e0e947ed9c
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
336
Assets/Prefeb/AttackBlock/Empty-0.prefab
Normal file
336
Assets/Prefeb/AttackBlock/Empty-0.prefab
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &771219355294398680
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 771219355294398681}
|
||||||
|
- component: {fileID: 771219355294398685}
|
||||||
|
- component: {fileID: 771219355294398684}
|
||||||
|
- component: {fileID: 771219355294398687}
|
||||||
|
- component: {fileID: 771219355294398686}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &771219355294398681
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355294398680}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.8, y: 1, z: 0.8}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 771219355588494023}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &771219355294398685
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355294398680}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &771219355294398684
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355294398680}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &771219355294398687
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355294398680}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &771219355294398686
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355294398680}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &771219355588494022
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 771219355588494023}
|
||||||
|
- component: {fileID: 771219355588494020}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Empty-0
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &771219355588494023
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355588494022}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 771219355294398681}
|
||||||
|
- {fileID: 7745870513197800378}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &771219355588494020
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 771219355588494022}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 771219355294398680}
|
||||||
|
EnemyContainerObj: {fileID: 6409500528995947518}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 1
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &6409500528995947518
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7745870513197800378}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7745870513197800378
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6409500528995947518}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6625223161647239707}
|
||||||
|
- {fileID: 3983914598227304367}
|
||||||
|
m_Father: {fileID: 771219355588494023}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1001 &3002348790068680181
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 7745870513197800378}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8240453774489061354, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Enemy-Simple
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
--- !u!4 &6625223161647239707 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 3002348790068680181}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &4977124326477551681
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 7745870513197800378}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8240453774489061354, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Enemy-Simple (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
--- !u!4 &3983914598227304367 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4977124326477551681}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
7
Assets/Prefeb/AttackBlock/Empty-0.prefab.meta
Normal file
7
Assets/Prefeb/AttackBlock/Empty-0.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 38e1219bc0e854642a1ec4d55715632c
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
336
Assets/Prefeb/AttackBlock/Empty-1.prefab
Normal file
336
Assets/Prefeb/AttackBlock/Empty-1.prefab
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &5157670622552495051
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2303470061900990548}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &2303470061900990548
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5157670622552495051}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3695379584914020777}
|
||||||
|
- {fileID: 2746065169805646941}
|
||||||
|
m_Father: {fileID: 5210138614873161071}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &5210138614873161068
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5210138614873161071}
|
||||||
|
- component: {fileID: 5210138614873161070}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Empty-1
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5210138614873161071
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138614873161068}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 5210138615741576699}
|
||||||
|
- {fileID: 2303470061900990548}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5210138614873161070
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138614873161068}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 5210138615741576696}
|
||||||
|
EnemyContainerObj: {fileID: 5157670622552495051}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 1
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &5210138615741576696
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5210138615741576699}
|
||||||
|
- component: {fileID: 5210138615741576703}
|
||||||
|
- component: {fileID: 5210138615741576700}
|
||||||
|
- component: {fileID: 5210138615741576701}
|
||||||
|
- component: {fileID: 5210138615741576698}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &5210138615741576699
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138615741576696}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.4, y: 2, z: 0.4}
|
||||||
|
m_ConstrainProportionsScale: 1
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 5210138614873161071}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &5210138615741576703
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138615741576696}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &5210138615741576700
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138615741576696}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &5210138615741576701
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138615741576696}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &5210138615741576698
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5210138615741576696}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1001 &4689189678735515207
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 2303470061900990548}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8240453774489061354, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Enemy-Simple
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
--- !u!4 &3695379584914020777 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4689189678735515207}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &6070855275452308403
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 2303470061900990548}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 8240453774489061354, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Enemy-Simple (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
--- !u!4 &2746065169805646941 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8240453774489061358, guid: c044b8f18a5ed2f4eaabb8d40095018f, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 6070855275452308403}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
7
Assets/Prefeb/AttackBlock/Empty-1.prefab.meta
Normal file
7
Assets/Prefeb/AttackBlock/Empty-1.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bd97e077540d4884d8fccc315932005c
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
207
Assets/Prefeb/BlockBase.prefab
Normal file
207
Assets/Prefeb/BlockBase.prefab
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &2607505772589865216
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5895885900625980392}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5895885900625980392
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2607505772589865216}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8844994239489888051}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8844994239489888050
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8844994239489888051}
|
||||||
|
- component: {fileID: 8844994239489888048}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BlockBase
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8844994239489888051
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239489888050}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8844994239752549677}
|
||||||
|
- {fileID: 5895885900625980392}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &8844994239489888048
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239489888050}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 8844994239752549676}
|
||||||
|
EnemyContainerObj: {fileID: 2607505772589865216}
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 0
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 5
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &8844994239752549676
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8844994239752549677}
|
||||||
|
- component: {fileID: 8844994239752549673}
|
||||||
|
- component: {fileID: 8844994239752549672}
|
||||||
|
- component: {fileID: 8844994239752549675}
|
||||||
|
- component: {fileID: 8844994239752549674}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8844994239752549677
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239752549676}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.8, y: 1, z: 0.8}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8844994239489888051}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &8844994239752549673
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239752549676}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &8844994239752549672
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239752549676}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &8844994239752549675
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239752549676}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &8844994239752549674
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8844994239752549676}
|
||||||
|
m_CullTransparentMesh: 1
|
7
Assets/Prefeb/BlockBase.prefab.meta
Normal file
7
Assets/Prefeb/BlockBase.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e4d31fc45b7e2e2469a83384a7ca9b43
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Assets/Prefeb/DefenceBlock.meta
Normal file
8
Assets/Prefeb/DefenceBlock.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7694f1db7cfc5ad4d934959f24ff2efc
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2270
Assets/Prefeb/DefenceBlock/Defence-BigRoom-1.prefab
Normal file
2270
Assets/Prefeb/DefenceBlock/Defence-BigRoom-1.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Prefeb/DefenceBlock/Defence-BigRoom-1.prefab.meta
Normal file
7
Assets/Prefeb/DefenceBlock/Defence-BigRoom-1.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e3e21135898c8784f846e870b1db56d3
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1541
Assets/Prefeb/DefenceBlock/Defence-DoubleL.prefab
Normal file
1541
Assets/Prefeb/DefenceBlock/Defence-DoubleL.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Prefeb/DefenceBlock/Defence-DoubleL.prefab.meta
Normal file
7
Assets/Prefeb/DefenceBlock/Defence-DoubleL.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f053dfedc7fd534d8ef4ed4015edecd
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
844
Assets/Prefeb/DefenceBlock/Defence-Open.prefab
Normal file
844
Assets/Prefeb/DefenceBlock/Defence-Open.prefab
Normal file
@ -0,0 +1,844 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &3752399968040652279
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3752399968040652278}
|
||||||
|
- component: {fileID: 3752399968040652274}
|
||||||
|
- component: {fileID: 3752399968040652275}
|
||||||
|
- component: {fileID: 3752399968040652272}
|
||||||
|
- component: {fileID: 3752399968040652273}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3752399968040652278
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968040652279}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.8, y: 1, z: 0.8}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3752399968333756392}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &3752399968040652274
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968040652279}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &3752399968040652275
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968040652279}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &3752399968040652272
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968040652279}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &3752399968040652273
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968040652279}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &3752399968333756393
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3752399968333756392}
|
||||||
|
- component: {fileID: 3752399968333756395}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Defence-Open
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3752399968333756392
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968333756393}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3752399968040652278}
|
||||||
|
- {fileID: 6846880658874341665}
|
||||||
|
- {fileID: 7340568089067579938}
|
||||||
|
- {fileID: 7366090494416356591}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &3752399968333756395
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3752399968333756393}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 3752399968040652279}
|
||||||
|
EnemyContainerObj: {fileID: 8515604050714261545}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 2
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &5912148762053631610
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7340568089067579938}
|
||||||
|
- component: {fileID: 5012582209261455664}
|
||||||
|
- component: {fileID: 3804066794526351321}
|
||||||
|
- component: {fileID: 210073139927530572}
|
||||||
|
- component: {fileID: 38259231877914511}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube (1)
|
||||||
|
m_TagString: Wall
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7340568089067579938
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5912148762053631610}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: -3, y: 0, z: 3}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3752399968333756392}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5012582209261455664
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5912148762053631610}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MeshFormatVersion: 2
|
||||||
|
m_Faces:
|
||||||
|
- m_Indexes: 000000000100000002000000010000000300000002000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 040000000500000006000000050000000700000006000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 100000001100000012000000110000001300000012000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 140000001500000016000000150000001700000016000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
m_SharedVertices:
|
||||||
|
- m_Vertices: 000000000d00000016000000
|
||||||
|
- m_Vertices: 010000000400000017000000
|
||||||
|
- m_Vertices: 020000000f00000010000000
|
||||||
|
- m_Vertices: 030000000600000011000000
|
||||||
|
- m_Vertices: 050000000800000015000000
|
||||||
|
- m_Vertices: 070000000a00000013000000
|
||||||
|
- m_Vertices: 090000000c00000014000000
|
||||||
|
- m_Vertices: 0b0000000e00000012000000
|
||||||
|
m_SharedTextures: []
|
||||||
|
m_Positions:
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 2, y: 0, z: 0}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 2, y: 2, z: 0}
|
||||||
|
- {x: 2, y: 0, z: 0}
|
||||||
|
- {x: 2, y: 0, z: -1}
|
||||||
|
- {x: 2, y: 2, z: 0}
|
||||||
|
- {x: 2, y: 2, z: -1}
|
||||||
|
- {x: 2, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 2, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 2, y: 2, z: 0}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 2, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 2, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 2, y: 0, z: 0}
|
||||||
|
m_Textures0:
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -2, y: 0}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: -2, y: 2}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -1, y: 0}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: -1, y: 2}
|
||||||
|
- {x: 2, y: 0}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 2, y: 2}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: 1, y: 0}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 1, y: 2}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 2, y: 0}
|
||||||
|
- {x: 0, y: -1}
|
||||||
|
- {x: 2, y: -1}
|
||||||
|
- {x: 0, y: -1}
|
||||||
|
- {x: -2, y: -1}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -2, y: 0}
|
||||||
|
m_Textures2: []
|
||||||
|
m_Textures3: []
|
||||||
|
m_Tangents:
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
m_Colors: []
|
||||||
|
m_UnwrapParameters:
|
||||||
|
m_HardAngle: 88
|
||||||
|
m_PackMargin: 20
|
||||||
|
m_AngleError: 8
|
||||||
|
m_AreaError: 15
|
||||||
|
m_PreserveMeshAssetOnDestroy: 0
|
||||||
|
assetGuid:
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
m_VersionIndex: 0
|
||||||
|
m_IsSelectable: 1
|
||||||
|
m_SelectedFaces:
|
||||||
|
m_SelectedEdges: []
|
||||||
|
m_SelectedVertices:
|
||||||
|
--- !u!23 &3804066794526351321
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5912148762053631610}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 652107f36a28e44479c0b827dee5852a, 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: 2
|
||||||
|
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!33 &210073139927530572
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5912148762053631610}
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
--- !u!64 &38259231877914511
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5912148762053631610}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
--- !u!1 &7253880637120809313
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6846880658874341665}
|
||||||
|
- component: {fileID: 6925242825514486347}
|
||||||
|
- component: {fileID: 8170201902376458187}
|
||||||
|
- component: {fileID: 991777696296115246}
|
||||||
|
- component: {fileID: 105891623104810229}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cube
|
||||||
|
m_TagString: Wall
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6846880658874341665
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7253880637120809313}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: -1, y: 0, z: -2}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3752399968333756392}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &6925242825514486347
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7253880637120809313}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MeshFormatVersion: 2
|
||||||
|
m_Faces:
|
||||||
|
- m_Indexes: 000000000100000002000000010000000300000002000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 040000000500000006000000050000000700000006000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 08000000090000000a000000090000000b0000000a000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 0c0000000d0000000e0000000d0000000f0000000e000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 100000001100000012000000110000001300000012000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
- m_Indexes: 140000001500000016000000150000001700000016000000
|
||||||
|
m_SmoothingGroup: 0
|
||||||
|
m_Uv:
|
||||||
|
m_UseWorldSpace: 0
|
||||||
|
m_FlipU: 0
|
||||||
|
m_FlipV: 0
|
||||||
|
m_SwapUV: 0
|
||||||
|
m_Fill: 1
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Rotation: 0
|
||||||
|
m_Anchor: 9
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_SubmeshIndex: 0
|
||||||
|
m_ManualUV: 0
|
||||||
|
elementGroup: -1
|
||||||
|
m_TextureGroup: -1
|
||||||
|
m_SharedVertices:
|
||||||
|
- m_Vertices: 000000000d00000016000000
|
||||||
|
- m_Vertices: 010000000400000017000000
|
||||||
|
- m_Vertices: 020000000f00000010000000
|
||||||
|
- m_Vertices: 030000000600000011000000
|
||||||
|
- m_Vertices: 050000000800000015000000
|
||||||
|
- m_Vertices: 070000000a00000013000000
|
||||||
|
- m_Vertices: 090000000c00000014000000
|
||||||
|
- m_Vertices: 0b0000000e00000012000000
|
||||||
|
m_SharedTextures: []
|
||||||
|
m_Positions:
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 4, y: 0, z: 0}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 4, y: 2, z: 0}
|
||||||
|
- {x: 4, y: 0, z: 0}
|
||||||
|
- {x: 4, y: 0, z: -1}
|
||||||
|
- {x: 4, y: 2, z: 0}
|
||||||
|
- {x: 4, y: 2, z: -1}
|
||||||
|
- {x: 4, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 4, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 0, y: 2, z: 0}
|
||||||
|
- {x: 4, y: 2, z: 0}
|
||||||
|
- {x: 0, y: 2, z: -1}
|
||||||
|
- {x: 4, y: 2, z: -1}
|
||||||
|
- {x: 0, y: 0, z: -1}
|
||||||
|
- {x: 4, y: 0, z: -1}
|
||||||
|
- {x: 0, y: 0, z: 0}
|
||||||
|
- {x: 4, y: 0, z: 0}
|
||||||
|
m_Textures0:
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -4, y: 0}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: -4, y: 2}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -1, y: 0}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: -1, y: 2}
|
||||||
|
- {x: 4, y: 0}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 4, y: 2}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: 1, y: 0}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 1, y: 2}
|
||||||
|
- {x: 0, y: 2}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: 4, y: 0}
|
||||||
|
- {x: 0, y: -1}
|
||||||
|
- {x: 4, y: -1}
|
||||||
|
- {x: 0, y: -1}
|
||||||
|
- {x: -4, y: -1}
|
||||||
|
- {x: 0, y: 0}
|
||||||
|
- {x: -4, y: 0}
|
||||||
|
m_Textures2: []
|
||||||
|
m_Textures3: []
|
||||||
|
m_Tangents:
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: 1, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 0, y: 0, z: -1, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: 1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
- {x: -1, y: 0, z: 0, w: -1}
|
||||||
|
m_Colors: []
|
||||||
|
m_UnwrapParameters:
|
||||||
|
m_HardAngle: 88
|
||||||
|
m_PackMargin: 20
|
||||||
|
m_AngleError: 8
|
||||||
|
m_AreaError: 15
|
||||||
|
m_PreserveMeshAssetOnDestroy: 0
|
||||||
|
assetGuid:
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
m_VersionIndex: 0
|
||||||
|
m_IsSelectable: 1
|
||||||
|
m_SelectedFaces:
|
||||||
|
m_SelectedEdges: []
|
||||||
|
m_SelectedVertices:
|
||||||
|
--- !u!23 &8170201902376458187
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7253880637120809313}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 652107f36a28e44479c0b827dee5852a, 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: 2
|
||||||
|
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!33 &991777696296115246
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7253880637120809313}
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
--- !u!64 &105891623104810229
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7253880637120809313}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 0}
|
||||||
|
--- !u!1 &8515604050714261545
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7366090494416356591}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7366090494416356591
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8515604050714261545}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3752399968333756392}
|
||||||
|
m_RootOrder: 3
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
7
Assets/Prefeb/DefenceBlock/Defence-Open.prefab.meta
Normal file
7
Assets/Prefeb/DefenceBlock/Defence-Open.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ab266ed339e7ab14f93d93b70ca3b843
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -12,9 +12,9 @@ GameObject:
|
|||||||
- component: {fileID: 389133026}
|
- component: {fileID: 389133026}
|
||||||
- component: {fileID: 389133025}
|
- component: {fileID: 389133025}
|
||||||
- component: {fileID: 389133024}
|
- component: {fileID: 389133024}
|
||||||
- component: {fileID: 389133023}
|
- component: {fileID: 3595646475546117520}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: EnemyHPBar
|
m_Name: HPBar
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -101,7 +101,7 @@ MonoBehaviour:
|
|||||||
m_BlockingMask:
|
m_BlockingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 4294967295
|
m_Bits: 4294967295
|
||||||
--- !u!114 &389133023
|
--- !u!114 &3595646475546117520
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@ -110,7 +110,7 @@ MonoBehaviour:
|
|||||||
m_GameObject: {fileID: 389133021}
|
m_GameObject: {fileID: 389133021}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: b293d3b541b20b7448f3ca4d09a9c38c, type: 3}
|
m_Script: {fileID: 11500000, guid: 925561829acf6c94097de75bf186b561, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &535890556
|
--- !u!1 &535890556
|
||||||
@ -277,6 +277,7 @@ GameObject:
|
|||||||
- component: {fileID: 8240453774489061356}
|
- component: {fileID: 8240453774489061356}
|
||||||
- component: {fileID: 8240453774489061357}
|
- component: {fileID: 8240453774489061357}
|
||||||
- component: {fileID: 8240453774489061329}
|
- component: {fileID: 8240453774489061329}
|
||||||
|
- component: {fileID: 1083433161029782277}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Enemy-Simple
|
m_Name: Enemy-Simple
|
||||||
m_TagString: Enemy
|
m_TagString: Enemy
|
||||||
@ -292,7 +293,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 8240453774489061354}
|
m_GameObject: {fileID: 8240453774489061354}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 5, y: 1.044, z: -2}
|
m_LocalPosition: {x: 5, y: 1, z: -2}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 389133022}
|
- {fileID: 389133022}
|
||||||
@ -374,4 +375,20 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 8cded1019e262a04e8d9ccb536d1ff20, type: 3}
|
m_Script: {fileID: 11500000, guid: 8cded1019e262a04e8d9ccb536d1ff20, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
EnemyHP: 100
|
EnemyMaxHP: 100
|
||||||
|
angle: 80
|
||||||
|
radius: 10
|
||||||
|
b: {fileID: 0}
|
||||||
|
--- !u!114 &1083433161029782277
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8240453774489061354}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: b25389b3cd1e7084d81fa752823ef210, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
MaxHP: 100
|
||||||
|
8
Assets/Prefeb/GoBlock.meta
Normal file
8
Assets/Prefeb/GoBlock.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 098143002ea3c6e44a3e58d9ed7d348a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1874
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea-1.prefab
Normal file
1874
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea-1.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 579210f2543099f4b9dcb386ed8f9e49
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1874
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea.prefab
Normal file
1874
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea.prefab.meta
Normal file
7
Assets/Prefeb/GoBlock/Go-BigRoom-littleArea.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f657e02eb087bb04f9b099f854d6f49b
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
606
Assets/Prefeb/GoBlock/Go-littleArea-with1Enemy.prefab
Normal file
606
Assets/Prefeb/GoBlock/Go-littleArea-with1Enemy.prefab
Normal file
@ -0,0 +1,606 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &968847664381654025
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 968847664381654029}
|
||||||
|
- component: {fileID: 968847664381654028}
|
||||||
|
- component: {fileID: 968847664381654031}
|
||||||
|
- component: {fileID: 968847664381654030}
|
||||||
|
- component: {fileID: 968847664381654066}
|
||||||
|
- component: {fileID: 8079686864276224230}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Enemy-Simple
|
||||||
|
m_TagString: Enemy
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &968847664381654029
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 1, y: 1, z: 1}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 9163119749036261693}
|
||||||
|
m_Father: {fileID: 8072764786774816954}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &968847664381654028
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &968847664381654031
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 3928c4c05b9a70849a7be5a0278b3e3d, 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!136 &968847664381654030
|
||||||
|
CapsuleCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Radius: 0.5
|
||||||
|
m_Height: 2
|
||||||
|
m_Direction: 1
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &968847664381654066
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8cded1019e262a04e8d9ccb536d1ff20, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
b: {fileID: 0}
|
||||||
|
--- !u!114 &8079686864276224230
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 968847664381654025}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: b25389b3cd1e7084d81fa752823ef210, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
isDead: 0
|
||||||
|
MaxHP: 100
|
||||||
|
--- !u!1 &5586581350158529005
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8072764786774816954}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8072764786774816954
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5586581350158529005}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 968847664381654029}
|
||||||
|
m_Father: {fileID: 8409002079588485152}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8409002079588485153
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8409002079588485152}
|
||||||
|
- component: {fileID: 8409002079588485155}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Go-littleArea-with1Enemy
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &8409002079588485152
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079588485153}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8409002079843840574}
|
||||||
|
- {fileID: 8072764786774816954}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &8409002079588485155
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079588485153}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 8409002079843840575}
|
||||||
|
EnemyContainerObj: {fileID: 5586581350158529005}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 2
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &8409002079843840575
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8409002079843840574}
|
||||||
|
- component: {fileID: 8409002079843840570}
|
||||||
|
- component: {fileID: 8409002079843840571}
|
||||||
|
- component: {fileID: 8409002079843840568}
|
||||||
|
- component: {fileID: 8409002079843840569}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Wall
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8409002079843840574
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079843840575}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.6, y: 1, z: 0.6}
|
||||||
|
m_ConstrainProportionsScale: 1
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 8409002079588485152}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &8409002079843840570
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079843840575}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &8409002079843840571
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079843840575}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &8409002079843840568
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079843840575}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &8409002079843840569
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8409002079843840575}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &9163119748897896863
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 9163119748897896862}
|
||||||
|
- component: {fileID: 9163119748897896860}
|
||||||
|
- component: {fileID: 9163119748897896861}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &9163119748897896862
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119748897896863}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9163119750258817934}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 1, y: 0.22}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &9163119748897896860
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119748897896863}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &9163119748897896861
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119748897896863}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 0
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 21300000, guid: 6e45334af48d8be41bc466a250835d44, type: 3}
|
||||||
|
m_Type: 3
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 0
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &9163119749036261694
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 9163119749036261693}
|
||||||
|
- component: {fileID: 9163119749036261633}
|
||||||
|
- component: {fileID: 9163119749036261634}
|
||||||
|
- component: {fileID: 9163119749036261635}
|
||||||
|
- component: {fileID: 5678966246068074099}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: HPBar
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &9163119749036261693
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119749036261694}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 9163119750258817934}
|
||||||
|
m_Father: {fileID: 968847664381654029}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 1.3}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!223 &9163119749036261633
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119749036261694}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 2
|
||||||
|
m_Camera: {fileID: 0}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_AdditionalShaderChannelsFlag: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
--- !u!114 &9163119749036261634
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119749036261694}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_UiScaleMode: 0
|
||||||
|
m_ReferencePixelsPerUnit: 100
|
||||||
|
m_ScaleFactor: 1
|
||||||
|
m_ReferenceResolution: {x: 800, y: 600}
|
||||||
|
m_ScreenMatchMode: 0
|
||||||
|
m_MatchWidthOrHeight: 0
|
||||||
|
m_PhysicalUnit: 3
|
||||||
|
m_FallbackScreenDPI: 96
|
||||||
|
m_DefaultSpriteDPI: 96
|
||||||
|
m_DynamicPixelsPerUnit: 1
|
||||||
|
m_PresetInfoIsWorld: 1
|
||||||
|
--- !u!114 &9163119749036261635
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119749036261694}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_IgnoreReversedGraphics: 1
|
||||||
|
m_BlockingObjects: 0
|
||||||
|
m_BlockingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
--- !u!114 &5678966246068074099
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119749036261694}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 925561829acf6c94097de75bf186b561, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &9163119750258817935
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 9163119750258817934}
|
||||||
|
- component: {fileID: 9163119750258817932}
|
||||||
|
- component: {fileID: 9163119750258817933}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: BG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &9163119750258817934
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119750258817935}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 9163119748897896862}
|
||||||
|
m_Father: {fileID: 9163119749036261693}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 1, y: 0.22}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &9163119750258817932
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119750258817935}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &9163119750258817933
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9163119750258817935}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 0
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 3
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 0
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 88d55a346dbe95747a7befb15157646a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
210
Assets/Prefeb/GoBlock/GoEmpty-0.prefab
Normal file
210
Assets/Prefeb/GoBlock/GoEmpty-0.prefab
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &4760142052363292896
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4760142052363292897}
|
||||||
|
- component: {fileID: 4760142052363292898}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GoEmpty-0
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4760142052363292897
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052363292896}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 4760142052614417151}
|
||||||
|
- {fileID: 6679913623606021579}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &4760142052363292898
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052363292896}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 4760142052614417150}
|
||||||
|
EnemyContainerObj: {fileID: 6651536395257198607}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 0
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &4760142052614417150
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4760142052614417151}
|
||||||
|
- component: {fileID: 4760142052614417147}
|
||||||
|
- component: {fileID: 4760142052614417146}
|
||||||
|
- component: {fileID: 4760142052614417145}
|
||||||
|
- component: {fileID: 4760142052614417144}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4760142052614417151
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052614417150}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.8, y: 1, z: 0.8}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4760142052363292897}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &4760142052614417147
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052614417150}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &4760142052614417146
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052614417150}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &4760142052614417145
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052614417150}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &4760142052614417144
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4760142052614417150}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &6651536395257198607
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6679913623606021579}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6679913623606021579
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6651536395257198607}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4760142052363292897}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
7
Assets/Prefeb/GoBlock/GoEmpty-0.prefab.meta
Normal file
7
Assets/Prefeb/GoBlock/GoEmpty-0.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5dab26d1f971ed948a3ed9b4d048361a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
210
Assets/Prefeb/GoBlock/GoEmpty-1.prefab
Normal file
210
Assets/Prefeb/GoBlock/GoEmpty-1.prefab
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &509600926247280219
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 509600926247280218}
|
||||||
|
- component: {fileID: 509600926247280222}
|
||||||
|
- component: {fileID: 509600926247280223}
|
||||||
|
- component: {fileID: 509600926247280220}
|
||||||
|
- component: {fileID: 509600926247280221}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: FirebasesArea
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &509600926247280218
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926247280219}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.3, y: 1, z: 0.3}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 509600926543488068}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0.01}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!33 &509600926247280222
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926247280219}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &509600926247280223
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926247280219}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
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: 64ef717bc697ed049aa24dd03708ed11, 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!64 &509600926247280220
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926247280219}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!222 &509600926247280221
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926247280219}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &509600926543488069
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 509600926543488068}
|
||||||
|
- component: {fileID: 509600926543488071}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GoEmpty-1
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &509600926543488068
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926543488069}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 509600926247280218}
|
||||||
|
- {fileID: 2430466073707311562}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &509600926543488071
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 509600926543488069}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e1ae09061637cf4ead72321c221f783, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
FirebasesAreaObj: {fileID: 509600926247280219}
|
||||||
|
EnemyContainerObj: {fileID: 3827661154147662685}
|
||||||
|
group1InareaNum: 0
|
||||||
|
group2InareaNum: 0
|
||||||
|
belongRatio: 0
|
||||||
|
blockSize: 10
|
||||||
|
firebasesAreaPosition: {x: 0, y: 0, z: 0}
|
||||||
|
firebasesAreaScale: 0
|
||||||
|
firebasesAreaDiameter: 0
|
||||||
|
sceneType: 0
|
||||||
|
isDestroyed: 0
|
||||||
|
group1Tag: Player
|
||||||
|
group2Tag: Enemy
|
||||||
|
belongMaxPoint: 10
|
||||||
|
firebasesBelong: 0
|
||||||
|
addPointInterval: 0.1
|
||||||
|
stayTimeNeeded: 2
|
||||||
|
group1Objs: []
|
||||||
|
group2Objs: []
|
||||||
|
--- !u!1 &3827661154147662685
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2430466073707311562}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EnemyContainer
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &2430466073707311562
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3827661154147662685}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 509600926543488068}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
7
Assets/Prefeb/GoBlock/GoEmpty-1.prefab.meta
Normal file
7
Assets/Prefeb/GoBlock/GoEmpty-1.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 64ddc28c0a55a064fbf313a2e0e293b7
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
7942
Assets/Prefeb/RewardChart.prefab
Normal file
7942
Assets/Prefeb/RewardChart.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Prefeb/RewardChart.prefab.meta
Normal file
7
Assets/Prefeb/RewardChart.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8dbc038adffc1104ba0f6a4332a3c15a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -11,25 +11,22 @@
|
|||||||
using Unity.MLAgents.Actuators;
|
using Unity.MLAgents.Actuators;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
/*主要ML-Agent控制*/
|
/*TODO:
|
||||||
|
√tag 攻击排他
|
||||||
|
√通用HP 系统
|
||||||
|
环境tag修正?
|
||||||
|
以tag重置环境修正
|
||||||
|
Agent死亡时待机处理*/
|
||||||
|
|
||||||
public class AgentWithGun : Agent
|
public class AgentWithGun : Agent
|
||||||
{
|
{
|
||||||
public GameObject ParameterContainerObj;
|
public GameObject ParameterContainerObj;
|
||||||
public GameObject EnviromentObj;
|
public GameObject EnvironmentObj;
|
||||||
public GameObject EnemyContainerObj;
|
public GameObject EnemyContainerObj;
|
||||||
public GameObject thisAgentObj;
|
public GameObject SceneBlockContainerObj;
|
||||||
public GameObject EnvironmentUIControlObj;
|
public GameObject EnvironmentUIControlObj;
|
||||||
public Transform thisAgent;
|
public GameObject TargetControllerObj;
|
||||||
public Camera thisCam;
|
public Camera thisCam;
|
||||||
public CharacterController PlayerController;
|
|
||||||
public GameObject enemyPrefab;
|
|
||||||
public GameObject edgeUp;
|
|
||||||
public GameObject edgeDown;
|
|
||||||
public GameObject edgeLeft;
|
|
||||||
public GameObject edgeRight;
|
|
||||||
public GameObject edgeAgent_Enemy;
|
|
||||||
|
|
||||||
|
|
||||||
[Header("GetAxis() Simulate")]
|
[Header("GetAxis() Simulate")]
|
||||||
public float MoveSpeed = 2.0f;
|
public float MoveSpeed = 2.0f;
|
||||||
@ -45,79 +42,50 @@ public class AgentWithGun : Agent
|
|||||||
private float Damage;
|
private float Damage;
|
||||||
private float fireRate;
|
private float fireRate;
|
||||||
private int enemyNum;
|
private int enemyNum;
|
||||||
private int timeLimit;
|
|
||||||
private bool lockCameraX;
|
private bool lockCameraX;
|
||||||
private bool lockCameraY;
|
private bool lockCameraY;
|
||||||
//public Vector3 startPosition = new Vector3(9, 1, 18);
|
|
||||||
|
|
||||||
private float startTime = 0;
|
// environment
|
||||||
private int shoot = 0;
|
private int shoot = 0;
|
||||||
private float lastShootTime = 0.0f;
|
private float lastShootTime = 0.0f;
|
||||||
private int nowEnemyNum = 0;
|
private int nowEnemyNum = 0;
|
||||||
private int enemyKillCount = 0;
|
private int enemyKillCount = 0;
|
||||||
|
private Vector3 killEnemyPosition;
|
||||||
private int step = 0;
|
private int step = 0;
|
||||||
private int EP = 0;
|
private int EP = 0;
|
||||||
public bool defaultTPCamera = true;
|
public bool defaultTPCamera = true;
|
||||||
private bool gunReadyToggle = true;
|
private bool gunReadyToggle = true;
|
||||||
|
private string myTag = "";
|
||||||
|
// scripts
|
||||||
private RaySensors rayScript;
|
private RaySensors rayScript;
|
||||||
private EnviromentUIControl EnvUICon;
|
private CharacterController PlayerController;
|
||||||
private parameterContainer paramContainer;
|
private EnvironmentUIControl EnvUICon;
|
||||||
|
private ParameterContainer paramContainer;
|
||||||
|
private SceneBlockContainer blockContainer;
|
||||||
|
private EnemyContainer eneContainer;
|
||||||
|
private TargetController targetCon;
|
||||||
|
|
||||||
[System.NonSerialized] public float minEnemyAreaX;
|
|
||||||
[System.NonSerialized] public float maxEnemyAreaX;
|
|
||||||
[System.NonSerialized] public float minEnemyAreaZ;
|
|
||||||
[System.NonSerialized] public float maxEnemyAreaZ;
|
|
||||||
[System.NonSerialized] public float minAgentAreaX;
|
|
||||||
[System.NonSerialized] public float maxAgentAreaX;
|
|
||||||
[System.NonSerialized] public float minAgentAreaZ;
|
|
||||||
[System.NonSerialized] public float maxAgentAreaZ;
|
|
||||||
|
|
||||||
[System.NonSerialized] public float nonReward;
|
|
||||||
[System.NonSerialized] public float shootReward;
|
|
||||||
[System.NonSerialized] public float shootWithoutReadyReward;
|
|
||||||
[System.NonSerialized] public float hitReward;
|
|
||||||
[System.NonSerialized] public float winReward;
|
|
||||||
[System.NonSerialized] public float loseReward;
|
|
||||||
[System.NonSerialized] public float killReward;
|
|
||||||
[System.NonSerialized] public float killBonusReward;
|
|
||||||
[System.NonSerialized] public int remainTime;
|
|
||||||
[System.NonSerialized] public int finishedState;
|
[System.NonSerialized] public int finishedState;
|
||||||
|
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
paramContainer = ParameterContainerObj.GetComponent<parameterContainer>();
|
paramContainer = ParameterContainerObj.GetComponent<ParameterContainer>();
|
||||||
EnvUICon = EnvironmentUIControlObj.GetComponent<EnviromentUIControl>();
|
eneContainer = EnemyContainerObj.GetComponent<EnemyContainer>();
|
||||||
|
blockContainer = SceneBlockContainerObj.GetComponent<SceneBlockContainer>();
|
||||||
|
EnvUICon = EnvironmentUIControlObj.GetComponent<EnvironmentUIControl>();
|
||||||
|
targetCon = TargetControllerObj.GetComponent<TargetController>();
|
||||||
rayScript = GetComponent<RaySensors>();
|
rayScript = GetComponent<RaySensors>();
|
||||||
// give default Reward to Reward value will be used.
|
PlayerController = this.transform.GetComponent<CharacterController>();
|
||||||
nonReward = paramContainer.nonRewardDefault;
|
|
||||||
shootReward = paramContainer.shootRewardDefault;
|
|
||||||
shootWithoutReadyReward = paramContainer.shootWithoutReadyRewardDefault;
|
|
||||||
hitReward = paramContainer.hitRewardDefault;
|
|
||||||
winReward = paramContainer.winRewardDefault;
|
|
||||||
loseReward = paramContainer.loseRewardDefault;
|
|
||||||
killReward = paramContainer.killRewardDefault;
|
|
||||||
killBonusReward = paramContainer.killBonusRewardDefault;
|
|
||||||
// Environment parameters
|
// Environment parameters
|
||||||
lockMouse = paramContainer.lockMouse;
|
lockMouse = paramContainer.lockMouse;
|
||||||
Damage = paramContainer.Damage;
|
Damage = paramContainer.Damage;
|
||||||
fireRate = paramContainer.fireRate;
|
fireRate = paramContainer.fireRate;
|
||||||
enemyNum = paramContainer.enemyNum;
|
enemyNum = paramContainer.enemyNum;
|
||||||
timeLimit = paramContainer.timeLimit;
|
|
||||||
lockCameraX = paramContainer.lockCameraX;
|
lockCameraX = paramContainer.lockCameraX;
|
||||||
lockCameraY = paramContainer.lockCameraY;
|
lockCameraY = paramContainer.lockCameraY;
|
||||||
//initialize remainTime
|
//initialize remainTime
|
||||||
remainTime = (int)(timeLimit - Time.time + startTime);
|
// this agent's tag
|
||||||
|
myTag = gameObject.tag;
|
||||||
minEnemyAreaX = edgeLeft.transform.localPosition.x + 1.0f;
|
|
||||||
maxEnemyAreaX = edgeRight.transform.localPosition.x - 1.0f;
|
|
||||||
minEnemyAreaZ = edgeAgent_Enemy.transform.localPosition.z + 1.0f;
|
|
||||||
maxEnemyAreaZ = edgeUp.transform.localPosition.z - 1.0f;
|
|
||||||
|
|
||||||
minAgentAreaX = edgeLeft.transform.localPosition.x + 1.0f;
|
|
||||||
maxAgentAreaX = edgeRight.transform.localPosition.x - 1.0f;
|
|
||||||
minAgentAreaZ = edgeDown.transform.localPosition.z + 1.0f;
|
|
||||||
maxAgentAreaZ = edgeAgent_Enemy.transform.localPosition.z - 1.0f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------此Update用于debug,Build前删除或注释掉!----------*/
|
/* ----------此Update用于debug,Build前删除或注释掉!----------*/
|
||||||
@ -127,30 +95,6 @@ private void Start()
|
|||||||
}*/
|
}*/
|
||||||
/* ----------此Update用于debug,Build前删除或注释掉!----------*/
|
/* ----------此Update用于debug,Build前删除或注释掉!----------*/
|
||||||
|
|
||||||
// --------------初始化---------------
|
|
||||||
// randomInitEnemys随机生成enemy
|
|
||||||
public void randomInitEnemys(int EnemyNum)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < EnemyNum; i++)
|
|
||||||
{
|
|
||||||
float randX = UnityEngine.Random.Range(minEnemyAreaX, maxEnemyAreaX);
|
|
||||||
float randZ = UnityEngine.Random.Range(minEnemyAreaZ, maxEnemyAreaZ);
|
|
||||||
int Y = 1;
|
|
||||||
Instantiate(enemyPrefab, new Vector3(randX, Y, randZ) + EnviromentObj.transform.position, Quaternion.identity, EnemyContainerObj.transform);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// --------------初始化---------------
|
|
||||||
// randomInitAgent随机位置初始化Agent
|
|
||||||
public void randomInitAgent()
|
|
||||||
{
|
|
||||||
float randX = UnityEngine.Random.Range(minAgentAreaX, maxAgentAreaX);
|
|
||||||
float randZ = UnityEngine.Random.Range(minAgentAreaZ, maxAgentAreaZ);
|
|
||||||
int Y = 1;
|
|
||||||
Vector3 initAgentLoc = new Vector3(randX, Y, randZ);
|
|
||||||
thisAgent.localPosition = initAgentLoc;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------动作处理--------------
|
// ------------动作处理--------------
|
||||||
// moveAgent 用于模拟Input.GetAxis移动
|
// moveAgent 用于模拟Input.GetAxis移动
|
||||||
public void moveAgent(int vertical, int horizontal)
|
public void moveAgent(int vertical, int horizontal)
|
||||||
@ -251,7 +195,7 @@ public void cameraControl(float Mouse_X, float Mouse_Y)
|
|||||||
|
|
||||||
|
|
||||||
//相机左右旋转时,是以Y轴为中心旋转的,上下旋转时,是以X轴为中心旋转的
|
//相机左右旋转时,是以Y轴为中心旋转的,上下旋转时,是以X轴为中心旋转的
|
||||||
thisAgent.Rotate(Vector3.up * Mouse_X);
|
transform.Rotate(Vector3.up * Mouse_X);
|
||||||
//Vector3.up相当于Vector3(0,1,0),CameraRotation.Rotate(Vector3.up * Mouse_X)相当于使CameraRotation对象绕y轴旋转Mouse_X个单位
|
//Vector3.up相当于Vector3(0,1,0),CameraRotation.Rotate(Vector3.up * Mouse_X)相当于使CameraRotation对象绕y轴旋转Mouse_X个单位
|
||||||
//即相机左右旋转时,是以Y轴为中心旋转的,此时Mouse_X控制着值的大小
|
//即相机左右旋转时,是以Y轴为中心旋转的,此时Mouse_X控制着值的大小
|
||||||
|
|
||||||
@ -265,9 +209,10 @@ public void cameraControl(float Mouse_X, float Mouse_Y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GotKill 获得击杀时用于被呼出
|
// GotKill 获得击杀时用于被呼出
|
||||||
public void GotKill()
|
public void killRecord(Vector3 thiskillEnemyPosition)
|
||||||
{
|
{
|
||||||
enemyKillCount += 1;
|
enemyKillCount += 1;
|
||||||
|
killEnemyPosition = thiskillEnemyPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check gun is ready to shoot
|
// check gun is ready to shoot
|
||||||
@ -297,58 +242,26 @@ float ballistic()
|
|||||||
lastShootTime = Time.time;
|
lastShootTime = Time.time;
|
||||||
if (Physics.Raycast(ray, out hit, 100))
|
if (Physics.Raycast(ray, out hit, 100))
|
||||||
{
|
{
|
||||||
if (hit.collider.tag == "Enemy")
|
if (hit.collider.tag != myTag && hit.collider.tag != "Wall")
|
||||||
{
|
{
|
||||||
GameObject gotHitObj = hit.transform.gameObject;//获取受到Ray撞击的对象
|
GameObject gotHitObj = hit.transform.gameObject;//获取受到Ray撞击的对象
|
||||||
gotHitObj.GetComponent<Enemy>().ReactToHit(Damage, thisAgentObj);
|
gotHitObj.GetComponent<states>().ReactToHit(Damage, gameObject);
|
||||||
shoot = 0;
|
shoot = 0;
|
||||||
return hitReward;
|
return paramContainer.hitReward;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
shoot = 0;
|
shoot = 0;
|
||||||
return shootReward;
|
return paramContainer.shootReward;
|
||||||
}
|
}
|
||||||
else if (shoot != 0 && gunReadyToggle == false)
|
else if (shoot != 0 && gunReadyToggle == false)
|
||||||
{
|
{
|
||||||
shoot = 0;
|
shoot = 0;
|
||||||
return shootWithoutReadyReward;
|
return paramContainer.shootWithoutReadyReward;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
shoot = 0;
|
shoot = 0;
|
||||||
return nonReward;
|
return paramContainer.nonReward;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// destroyEnemy消除EnemyContainer内所有Enemy
|
|
||||||
public void destroyAllEnemys()
|
|
||||||
{
|
|
||||||
foreach (Transform childObj in EnemyContainerObj.transform)
|
|
||||||
{
|
|
||||||
if (childObj.tag == "Enemy")
|
|
||||||
{
|
|
||||||
Destroy(childObj.gameObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// checkFinish 检查是否结束回合返回int值
|
|
||||||
// 1 = success,2 = overtime,0 = notover
|
|
||||||
int checkFinish()
|
|
||||||
{
|
|
||||||
if (EnemyContainerObj.transform.childCount <= 0)
|
|
||||||
{
|
|
||||||
//成功击杀所有Enemy
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else if (Time.time - startTime >= timeLimit)
|
|
||||||
{
|
|
||||||
//超时失败
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -363,7 +276,7 @@ int getEnemyNum()
|
|||||||
{
|
{
|
||||||
Vector3 thisEnemyPosition = EnemyObj.transform.localPosition;
|
Vector3 thisEnemyPosition = EnemyObj.transform.localPosition;
|
||||||
Vector3 thisEnemyScale = EnemyObj.transform.localScale;
|
Vector3 thisEnemyScale = EnemyObj.transform.localScale;
|
||||||
Vector3 MyselfPosition = thisAgent.localPosition;
|
Vector3 MyselfPosition = transform.localPosition;
|
||||||
|
|
||||||
//探测到Agent为自己时的处理
|
//探测到Agent为自己时的处理
|
||||||
if (thisEnemyPosition == MyselfPosition)
|
if (thisEnemyPosition == MyselfPosition)
|
||||||
@ -389,7 +302,7 @@ int enemyNumDiff()
|
|||||||
|
|
||||||
// ------------Reward--------------
|
// ------------Reward--------------
|
||||||
// rewardCalculate 计算本动作的Reward
|
// rewardCalculate 计算本动作的Reward
|
||||||
public float rewardCalculate()
|
public float rewardCalculate(float sceneReward)
|
||||||
{
|
{
|
||||||
float epreward = 0f;
|
float epreward = 0f;
|
||||||
// 击杀reward判断
|
// 击杀reward判断
|
||||||
@ -397,10 +310,8 @@ public float rewardCalculate()
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < enemyKillCount; i++)
|
for (int i = 0; i < enemyKillCount; i++)
|
||||||
{
|
{
|
||||||
epreward += killReward;
|
// get
|
||||||
nonReward += killBonusReward;
|
epreward += targetCon.killReward(killEnemyPosition);
|
||||||
shootReward += killBonusReward;
|
|
||||||
shootWithoutReadyReward += killBonusReward;
|
|
||||||
}
|
}
|
||||||
enemyKillCount = 0;
|
enemyKillCount = 0;
|
||||||
}
|
}
|
||||||
@ -409,7 +320,7 @@ public float rewardCalculate()
|
|||||||
enemyKillCount = 0;
|
enemyKillCount = 0;
|
||||||
}
|
}
|
||||||
// 射击动作reward判断
|
// 射击动作reward判断
|
||||||
epreward += ballistic();
|
epreward += ballistic() + sceneReward;
|
||||||
return epreward;
|
return epreward;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -423,32 +334,33 @@ public override void OnEpisodeBegin()
|
|||||||
{
|
{
|
||||||
Cursor.lockState = CursorLockMode.Locked; // hide and lock the mouse
|
Cursor.lockState = CursorLockMode.Locked; // hide and lock the mouse
|
||||||
}
|
}
|
||||||
//iniCharts();
|
|
||||||
//thisAgentObj.name = thisAgentObj.GetInstanceID().ToString();
|
//thisAgentObj.name = thisAgentObj.GetInstanceID().ToString();
|
||||||
destroyAllEnemys();
|
targetCon.rollNewScene();
|
||||||
startTime = Time.time;// Reset StartTime as now time
|
paramContainer.resetTimeBonusReward();
|
||||||
randomInitAgent();
|
|
||||||
randomInitEnemys(enemyNum);
|
|
||||||
nowEnemyNum = getEnemyNum(); // Reset Enemy number
|
nowEnemyNum = getEnemyNum(); // Reset Enemy number
|
||||||
// give default Reward to Reward value will be used.
|
// give default Reward to Reward value will be used.
|
||||||
EnvUICon.initChart();
|
if (paramContainer.chartOn)
|
||||||
|
{
|
||||||
|
EnvUICon.initChart();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ML-AGENTS处理-------------------------------------------------------------------------------------------ML-AGENTS
|
// ML-AGENTS处理-------------------------------------------------------------------------------------------ML-AGENTS
|
||||||
// 观察情报
|
// 观察情报
|
||||||
public override void CollectObservations(VectorSensor sensor)
|
public override void CollectObservations(VectorSensor sensor)
|
||||||
{
|
{
|
||||||
|
|
||||||
//List<float> enemyLDisList = RaySensors.enemyLDisList;// All Enemy Lside Distances
|
//List<float> enemyLDisList = RaySensors.enemyLDisList;// All Enemy Lside Distances
|
||||||
//List<float> enemyRDisList = RaySensors.enemyRDisList;// All Enemy Rside Distances
|
//List<float> enemyRDisList = RaySensors.enemyRDisList;// All Enemy Rside Distances
|
||||||
|
|
||||||
rayScript.updateRayInfo();
|
rayScript.updateRayInfo();
|
||||||
float[] myObserve = { thisAgent.localPosition.x, thisAgent.localPosition.y, thisAgent.localPosition.z, thisAgent.rotation.w };
|
float[] myObserve = { transform.localPosition.x, transform.localPosition.y, transform.localPosition.z, transform.rotation.w };
|
||||||
float[] rayTagResult = rayScript.rayTagResult;// 探测用RayTag结果 float[](raySensorNum,1)
|
float[] rayTagResult = rayScript.rayTagResult;// 探测用RayTag结果 float[](raySensorNum,1)
|
||||||
float[] rayDisResult = rayScript.rayDisResult; // 探测用RayDis结果 float[](raySensorNum,1)
|
float[] rayDisResult = rayScript.rayDisResult; // 探测用RayDis结果 float[](raySensorNum,1)
|
||||||
|
float[] targetStates = targetCon.getTargetStates(); // targettype, target x,y,z, firebasesAreaDiameter
|
||||||
|
|
||||||
//float[] focusEnemyObserve = RaySensors.focusEnemyInfo;// 最近的Enemy情报 float[](3,1) MinEnemyIndex,x,z
|
//float[] focusEnemyObserve = RaySensors.focusEnemyInfo;// 最近的Enemy情报 float[](3,1) MinEnemyIndex,x,z
|
||||||
|
|
||||||
//sensor.AddObservation(allEnemyNum); // 敌人数量 int
|
//sensor.AddObservation(allEnemyNum); // 敌人数量 int
|
||||||
|
sensor.AddObservation(targetStates);// targettype, target x,y,z, firebasesAreaDiameter
|
||||||
sensor.AddObservation(myObserve); // 自机位置xyz+朝向 float[](4,1)
|
sensor.AddObservation(myObserve); // 自机位置xyz+朝向 float[](4,1)
|
||||||
sensor.AddObservation(rayTagResult); // 探测用RayTag结果 float[](raySensorNum,1)
|
sensor.AddObservation(rayTagResult); // 探测用RayTag结果 float[](raySensorNum,1)
|
||||||
sensor.AddObservation(rayDisResult); // 探测用RayDis结果 float[](raySensorNum,1)
|
sensor.AddObservation(rayDisResult); // 探测用RayDis结果 float[](raySensorNum,1)
|
||||||
@ -470,42 +382,34 @@ public override void OnActionReceived(ActionBuffers actionBuffers)
|
|||||||
float Mouse_X = actionBuffers.ContinuousActions[0];
|
float Mouse_X = actionBuffers.ContinuousActions[0];
|
||||||
if (vertical == 2) vertical = -1;
|
if (vertical == 2) vertical = -1;
|
||||||
if (horizontal == 2) horizontal = -1;
|
if (horizontal == 2) horizontal = -1;
|
||||||
remainTime = (int)(timeLimit - Time.time + startTime);
|
|
||||||
|
|
||||||
//应用输入
|
//应用输入
|
||||||
shoot = mouseShoot;
|
shoot = mouseShoot;
|
||||||
cameraControl(Mouse_X, 0);
|
cameraControl(Mouse_X, 0);
|
||||||
moveAgent(vertical, horizontal);
|
moveAgent(vertical, horizontal);
|
||||||
float thisRoundReward = rewardCalculate();
|
|
||||||
|
|
||||||
//判断结束
|
//判断结束
|
||||||
finishedState = checkFinish();
|
float sceneReward = 0f;
|
||||||
if (finishedState == 1)
|
(finishedState, sceneReward) = targetCon.checkOverAndRewards();
|
||||||
|
float thisRoundReward = rewardCalculate(sceneReward);
|
||||||
|
if (paramContainer.chartOn)
|
||||||
{
|
{
|
||||||
//Win Finished
|
EnvUICon.updateChart(thisRoundReward);
|
||||||
EP += 1;
|
|
||||||
EnvUICon.updateChart(winReward);
|
|
||||||
SetReward(winReward);
|
|
||||||
Debug.Log("reward = " + winReward);
|
|
||||||
EndEpisode();
|
|
||||||
}
|
}
|
||||||
else if (finishedState == 2)
|
//Debug.Log("reward = " + thisRoundReward);
|
||||||
|
if (finishedState != (int)TargetController.EndType.Running)
|
||||||
{
|
{
|
||||||
//Lose Finished
|
// Win or lose Finished
|
||||||
|
Debug.Log("Finish reward = " + thisRoundReward);
|
||||||
EP += 1;
|
EP += 1;
|
||||||
EnvUICon.updateChart(loseReward);
|
|
||||||
SetReward(loseReward);
|
|
||||||
Debug.Log("reward = " + loseReward);
|
|
||||||
EndEpisode();
|
EndEpisode();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// game not over yet
|
// game not over yet
|
||||||
step += 1;
|
step += 1;
|
||||||
EnvUICon.updateChart(thisRoundReward);
|
|
||||||
SetReward(thisRoundReward);
|
|
||||||
Debug.Log("reward = " + thisRoundReward);
|
|
||||||
}
|
}
|
||||||
|
SetReward(thisRoundReward);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ML-AGENTS处理-------------------------------------------------------------------------------------------ML-AGENTS
|
// ML-AGENTS处理-------------------------------------------------------------------------------------------ML-AGENTS
|
||||||
|
@ -1,40 +1,84 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class Enemy : MonoBehaviour
|
public class Enemy : MonoBehaviour
|
||||||
{
|
{
|
||||||
float EnemyHP = 100;
|
//扇形角度
|
||||||
public float EnemyMaxHP = 100;
|
//[SerializeField] private float angle = 80f;
|
||||||
|
//扇形半径
|
||||||
|
//[SerializeField] private float radius = 3.5f;
|
||||||
|
//物体B
|
||||||
|
[SerializeField] private Transform b;
|
||||||
|
|
||||||
|
private bool flag;
|
||||||
|
/// <summary>
|
||||||
|
/// 判断target是否在扇形区域内
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sectorAngle">扇形角度</param>
|
||||||
|
/// <param name="sectorRadius">扇形半径</param>
|
||||||
|
/// <param name="attacker">攻击者的transform信息</param>
|
||||||
|
/// <param name="target">目标</param>
|
||||||
|
/// <returns>目标target在扇形区域内返回true 否则返回false</returns>
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
EnemyHP = EnemyMaxHP;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
detactDeath();
|
//detactDeath();
|
||||||
|
//flag = IsInRange(angle, radius, transform, b);
|
||||||
}
|
}
|
||||||
private void detactDeath()
|
|
||||||
|
public bool IsInRange(float sectorAngle, float sectorRadius, Transform attacker, Transform target)
|
||||||
{
|
{
|
||||||
if (EnemyHP <= 0){
|
//攻击者位置指向目标位置的向量
|
||||||
Destroy(this.gameObject);
|
Vector3 direction = target.position - attacker.position;
|
||||||
}
|
//点乘积结果
|
||||||
|
float dot = Vector3.Dot(direction.normalized, transform.forward);
|
||||||
|
//反余弦计算角度
|
||||||
|
float offsetAngle = Mathf.Acos(dot) * Mathf.Rad2Deg;
|
||||||
|
return offsetAngle < sectorAngle * .5f && direction.magnitude < sectorRadius;
|
||||||
}
|
}
|
||||||
public void ReactToHit(float Damage,GameObject damageSource)
|
/*
|
||||||
|
private void OnDrawGizmos()
|
||||||
{
|
{
|
||||||
EnemyHP -= Damage;
|
Handles.color = flag ? Color.cyan : Color.red;
|
||||||
Debug.Log("HP:"+ EnemyHP);
|
|
||||||
if(EnemyHP <= 0)
|
float x = radius * Mathf.Sin(angle / 2f * Mathf.Deg2Rad);
|
||||||
|
float y = Mathf.Sqrt(Mathf.Pow(radius, 2f) - Mathf.Pow(x, 2f));
|
||||||
|
Vector3 a = new Vector3(transform.position.x - x, transform.position.y, transform.position.z + y);
|
||||||
|
Vector3 b = new Vector3(transform.position.x + x, transform.position.y, transform.position.z + y);
|
||||||
|
|
||||||
|
Handles.DrawLine(transform.position, a);
|
||||||
|
Handles.DrawLine(transform.position, b);
|
||||||
|
|
||||||
|
float half = angle / 2;
|
||||||
|
for (int i = 0; i < half; i++)
|
||||||
{
|
{
|
||||||
damageSource.GetComponent<AgentWithGun>().GotKill();
|
x = radius * Mathf.Sin((half - i) * Mathf.Deg2Rad);
|
||||||
Destroy(this.gameObject);
|
y = Mathf.Sqrt(Mathf.Pow(radius, 2f) - Mathf.Pow(x, 2f));
|
||||||
|
a = new Vector3(transform.position.x - x, transform.position.y, transform.position.z + y);
|
||||||
|
x = radius * Mathf.Sin((half - i - 1) * Mathf.Deg2Rad);
|
||||||
|
y = Mathf.Sqrt(Mathf.Pow(radius, 2f) - Mathf.Pow(x, 2f));
|
||||||
|
b = new Vector3(transform.position.x - x, transform.position.y, transform.position.z + y);
|
||||||
|
|
||||||
|
Handles.DrawLine(a, b);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < half; i++)
|
||||||
|
{
|
||||||
|
x = radius * Mathf.Sin((half - i) * Mathf.Deg2Rad);
|
||||||
|
y = Mathf.Sqrt(Mathf.Pow(radius, 2f) - Mathf.Pow(x, 2f));
|
||||||
|
a = new Vector3(transform.position.x + x, transform.position.y, transform.position.z + y);
|
||||||
|
x = radius * Mathf.Sin((half - i - 1) * Mathf.Deg2Rad);
|
||||||
|
y = Mathf.Sqrt(Mathf.Pow(radius, 2f) - Mathf.Pow(x, 2f));
|
||||||
|
b = new Vector3(transform.position.x + x, transform.position.y, transform.position.z + y);
|
||||||
|
|
||||||
|
Handles.DrawLine(a, b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public float getnowHP()
|
*/
|
||||||
{
|
|
||||||
return EnemyHP;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
67
Assets/Script/InGame/EnemyContainer.cs
Normal file
67
Assets/Script/InGame/EnemyContainer.cs
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class EnemyContainer : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject enemyPrefab;
|
||||||
|
public GameObject EnvironmentObj;
|
||||||
|
public GameObject TargetControllerObj;
|
||||||
|
|
||||||
|
private TargetController targetCon;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
targetCon = TargetControllerObj.GetComponent<TargetController>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// initialize enemy by random
|
||||||
|
public void randomInitEnemys(int EnemyNum)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < EnemyNum; i++)
|
||||||
|
{
|
||||||
|
float randX = UnityEngine.Random.Range(targetCon.minEnemyAreaX, targetCon.maxEnemyAreaX);
|
||||||
|
float randZ = UnityEngine.Random.Range(targetCon.minEnemyAreaZ, targetCon.maxEnemyAreaZ);
|
||||||
|
int enemyY = 1;
|
||||||
|
initEnemyAtHere(new Vector3(randX, enemyY, randZ));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// initialize enemy by random but not in block area
|
||||||
|
public void randomInitEnemysExcept(int enemyNum,Vector3 blockPosition,float sceneSize)
|
||||||
|
{
|
||||||
|
float randX = 0f;
|
||||||
|
float randZ = 0f;
|
||||||
|
for (int i = 0; i < enemyNum; i++)
|
||||||
|
{
|
||||||
|
randX = UnityEngine.Random.Range(targetCon.minEnemyAreaX, targetCon.maxEnemyAreaX);
|
||||||
|
randZ = UnityEngine.Random.Range(targetCon.minEnemyAreaZ, targetCon.maxEnemyAreaZ);
|
||||||
|
while (Vector3.Distance(blockPosition, new Vector3(randX,0f,randZ)) < sceneSize/2)
|
||||||
|
{
|
||||||
|
// while in scene area then respawn
|
||||||
|
Debug.Log("spawn enemy in area, re:roll");
|
||||||
|
randX = UnityEngine.Random.Range(targetCon.minEnemyAreaX, targetCon.maxEnemyAreaX);
|
||||||
|
randZ = UnityEngine.Random.Range(targetCon.minEnemyAreaZ, targetCon.maxEnemyAreaZ);
|
||||||
|
}
|
||||||
|
|
||||||
|
int enemyY = 1;
|
||||||
|
initEnemyAtHere(new Vector3(randX, enemyY, randZ));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// initialize enemy to thisPosition
|
||||||
|
public void initEnemyAtHere(Vector3 thisPosition)
|
||||||
|
{
|
||||||
|
Instantiate(enemyPrefab, thisPosition + EnvironmentObj.transform.position, Quaternion.identity, this.transform);
|
||||||
|
}
|
||||||
|
|
||||||
|
// destroyEnemy delete enemyContainer's all enemy
|
||||||
|
public void destroyAllEnemys()
|
||||||
|
{
|
||||||
|
foreach (Transform childObj in this.transform)
|
||||||
|
{
|
||||||
|
childObj.GetComponent<states>().destroyMe();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b293d3b541b20b7448f3ca4d09a9c38c
|
guid: 0350ec966da42b44699fee7309a89ac7
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
114
Assets/Script/InGame/EnvironmentUIControl.cs
Normal file
114
Assets/Script/InGame/EnvironmentUIControl.cs
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using TMPro;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using XCharts.Runtime;
|
||||||
|
|
||||||
|
public class EnvironmentUIControl : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject TargetControllerObj;
|
||||||
|
public GameObject ParameterContainerObj;
|
||||||
|
public GameObject GroundCanvasObj;
|
||||||
|
public GameObject chartObj;
|
||||||
|
public TextMeshProUGUI remainTimeText;
|
||||||
|
public TextMeshProUGUI winLoseText;
|
||||||
|
public float resultTimeout = 1f;
|
||||||
|
public GameObject gaugeImgObj;
|
||||||
|
|
||||||
|
private LineChart realTimeRewardChart = null;
|
||||||
|
private TargetController targetController;
|
||||||
|
private ParameterContainer paramContainer;
|
||||||
|
private Image gaugeImg;
|
||||||
|
private float overTime = 0f;
|
||||||
|
private int step = 0;
|
||||||
|
private bool resultActive = false;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
targetController = TargetControllerObj.GetComponent<TargetController>();
|
||||||
|
paramContainer = ParameterContainerObj.GetComponent<ParameterContainer>();
|
||||||
|
gaugeImg = gaugeImgObj.GetComponent<Image>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
int remainTime = Convert.ToInt32(targetController.startTime + paramContainer.timeLimit - Time.time);
|
||||||
|
remainTimeText.text = "RemainTime:" + remainTime.ToString();
|
||||||
|
if (resultActive && Time.time - overTime >= resultTimeout)
|
||||||
|
{
|
||||||
|
// while result is active and show time over timeOut
|
||||||
|
// clear the result
|
||||||
|
Debug.Log("clear result");
|
||||||
|
winLoseText.text = "";
|
||||||
|
winLoseText.color = Color.white;
|
||||||
|
resultActive = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void updateChart(float reward)
|
||||||
|
{
|
||||||
|
step += 1;
|
||||||
|
realTimeRewardChart.AddXAxisData(Convert.ToString(step));
|
||||||
|
realTimeRewardChart.AddData(0, reward);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void initChart()
|
||||||
|
{
|
||||||
|
if (paramContainer.chartOn && realTimeRewardChart == null)
|
||||||
|
{
|
||||||
|
Vector3 chartPos = new Vector3(-210f, 90f, 0f) * GroundCanvasObj.transform.localScale.x;
|
||||||
|
realTimeRewardChart = chartObj.AddComponent<LineChart>();
|
||||||
|
realTimeRewardChart.Init();
|
||||||
|
}
|
||||||
|
realTimeRewardChart.RemoveData();
|
||||||
|
realTimeRewardChart.AddSerie<Line>("Rewards");
|
||||||
|
}
|
||||||
|
|
||||||
|
// show result in UI
|
||||||
|
public void showResult(int resultState)
|
||||||
|
{
|
||||||
|
switch (resultState)
|
||||||
|
{
|
||||||
|
case (int)TargetController.EndType.Win:
|
||||||
|
//Win
|
||||||
|
Debug.Log("win");
|
||||||
|
winLoseText.text = "Win";
|
||||||
|
winLoseText.color = Color.green;
|
||||||
|
overTime = Time.time;
|
||||||
|
resultActive = true;
|
||||||
|
break;
|
||||||
|
case (int)TargetController.EndType.Lose:
|
||||||
|
//lose
|
||||||
|
Debug.Log("lose");
|
||||||
|
winLoseText.text = "Lose";
|
||||||
|
winLoseText.color = Color.red;
|
||||||
|
overTime = Time.time;
|
||||||
|
resultActive = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// update firebases target state gauge
|
||||||
|
public void updateTargetGauge(float firebasesBelong, float belongMaxPoint)
|
||||||
|
{
|
||||||
|
if (firebasesBelong >= 0)
|
||||||
|
{
|
||||||
|
gaugeImgObj.transform.localPosition = new Vector3(25f, 0, 0);
|
||||||
|
gaugeImg.color = Color.blue;
|
||||||
|
gaugeImg.fillOrigin = 0;
|
||||||
|
gaugeImg.fillAmount = firebasesBelong / belongMaxPoint;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gaugeImgObj.transform.localPosition = new Vector3(-25f, 0, 0);
|
||||||
|
gaugeImg.color = Color.red;
|
||||||
|
gaugeImg.fillOrigin = 1;
|
||||||
|
gaugeImg.fillAmount = -firebasesBelong / belongMaxPoint;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -3,22 +3,22 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class EnemyHPBar : MonoBehaviour
|
public class HPBar : MonoBehaviour
|
||||||
{
|
{
|
||||||
GameObject EnemyOBJ;
|
GameObject thisObj;
|
||||||
GameObject BGOBJ;
|
GameObject BGOBJ;
|
||||||
GameObject gaugeImgOBJ;
|
GameObject gaugeImgOBJ;
|
||||||
|
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
EnemyOBJ = transform.parent.gameObject;
|
thisObj = transform.parent.gameObject;
|
||||||
BGOBJ = transform.GetChild(0).gameObject;
|
BGOBJ = transform.GetChild(0).gameObject;
|
||||||
gaugeImgOBJ = BGOBJ.transform.GetChild(0).gameObject;
|
gaugeImgOBJ = BGOBJ.transform.GetChild(0).gameObject;
|
||||||
Vector3 v = Camera.main.transform.position - transform.position;
|
Vector3 v = Camera.main.transform.position - transform.position;
|
||||||
v.x = v.z = 0.0f;
|
v.x = v.z = 0.0f;
|
||||||
transform.LookAt(Camera.main.transform.position - v);
|
transform.LookAt(Camera.main.transform.position - v);
|
||||||
transform.Rotate(0,180,0);
|
transform.Rotate(0, 180, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
@ -26,10 +26,10 @@ void Update()
|
|||||||
Vector3 v = Camera.main.transform.position - transform.position;
|
Vector3 v = Camera.main.transform.position - transform.position;
|
||||||
v.x = v.z = 0.0f;
|
v.x = v.z = 0.0f;
|
||||||
transform.LookAt(Camera.main.transform.position - v);
|
transform.LookAt(Camera.main.transform.position - v);
|
||||||
transform.Rotate(0,180,0);
|
transform.Rotate(0, 180, 0);
|
||||||
|
|
||||||
float maxHP = EnemyOBJ.GetComponent<Enemy>().EnemyMaxHP;
|
float maxHP = thisObj.GetComponent<states>().MaxHP;
|
||||||
float nowHP = EnemyOBJ.GetComponent<Enemy>().getnowHP();
|
float nowHP = thisObj.GetComponent<states>().getnowHP();
|
||||||
gaugeImgOBJ.GetComponent<Image>().fillAmount = nowHP / maxHP;
|
gaugeImgOBJ.GetComponent<Image>().fillAmount = nowHP / maxHP;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ec48577b239fca544a51411c6c49b68a
|
guid: 925561829acf6c94097de75bf186b561
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
130
Assets/Script/InGame/ParameterContainer.cs
Normal file
130
Assets/Script/InGame/ParameterContainer.cs
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ParameterContainer : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject targetConObj;
|
||||||
|
public GameObject blockConObj;
|
||||||
|
public GameObject agentObj;
|
||||||
|
private TargetController targetCon;
|
||||||
|
private SceneBlockContainer blockCont;
|
||||||
|
private float agentDistance;
|
||||||
|
private int agentInArea;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("Env")]
|
||||||
|
public bool lockMouse = false;
|
||||||
|
public float Damage = 50; // damage to enemy
|
||||||
|
public float fireRate = 0.5f;
|
||||||
|
public int enemyNum = 3;
|
||||||
|
public int timeLimit = 30;
|
||||||
|
public bool lockCameraX = false;
|
||||||
|
public bool lockCameraY = true;
|
||||||
|
public bool chartOn = false;
|
||||||
|
|
||||||
|
|
||||||
|
[Header("Dynamic Defaut Rewards")]
|
||||||
|
[Tooltip("Hit Enemy reward")]
|
||||||
|
public float hitRewardDefault = 30.0f;
|
||||||
|
[Tooltip("Episode Win reward")]
|
||||||
|
public float winRewardDefault = 50.0f;
|
||||||
|
[Tooltip("Enemy down reward")]
|
||||||
|
public float killRewardDefault = 40.0f;
|
||||||
|
[Tooltip("Enemy down in area Reward")]
|
||||||
|
public float killInAreaEnemyRewardDefault = 80.0f;
|
||||||
|
[Tooltip("stay in firebasesArea reward")]
|
||||||
|
public float inAreaRewardDefault = 1.0f;
|
||||||
|
[Tooltip("free left time bonus reward. ALLR + leftTime * r")]
|
||||||
|
public float freeTimeBonusPerSec = 1.0f;
|
||||||
|
[Tooltip("target left time bonus reward. ALLR + leftTime * r")]
|
||||||
|
public float targetTimeBonusPerSec = 3.0f;
|
||||||
|
[Tooltip("in area left time bonus reward. ALLR + leftTime * r")]
|
||||||
|
public float areaTimeBonusPerSec = 1.0f;
|
||||||
|
[Tooltip("distance reward reward = r*(1-(nowDis/startDis))")]
|
||||||
|
public float distanceReward = 1.0f;
|
||||||
|
|
||||||
|
[Header("Dynamic Rewards")]
|
||||||
|
[Tooltip("Hit Enemy reward")]
|
||||||
|
public float hitReward = 30.0f;
|
||||||
|
[Tooltip("Enemy down reward")]
|
||||||
|
public float killReward = 40.0f;
|
||||||
|
[Tooltip("Episode Win reward")]
|
||||||
|
public float winReward = 50.0f;
|
||||||
|
[Tooltip("Enemy down in area Reward")]
|
||||||
|
public float killInAreaEnemyReward = 80.0f;
|
||||||
|
[Tooltip("stay in firebasesArea reward")]
|
||||||
|
public float inAreaReward = 1.0f;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[Header("Static Rewards")]
|
||||||
|
[Tooltip("Nothing happened reward")]
|
||||||
|
public float nonReward = -0.05f;
|
||||||
|
[Tooltip("Episode Lose reward")]
|
||||||
|
public float loseReward = -0.05f;
|
||||||
|
[Tooltip("Agent Do shoot action reward")]
|
||||||
|
public float shootReward = -0.1f;
|
||||||
|
[Tooltip("Agent Do shoot action but gun is not read")]
|
||||||
|
public float shootWithoutReadyReward = -0.15f;
|
||||||
|
[Tooltip("Kill bonus reward stack to nothing happend reward")]
|
||||||
|
public float killBonusReward = 0.0f;
|
||||||
|
[Header("Penalty Rewards")]
|
||||||
|
[Tooltip("Speed Penalty Reward")]
|
||||||
|
public float speedPanalty = 0f;
|
||||||
|
[Tooltip("view Panalty Reward")]
|
||||||
|
public float viewPanalty = 0f;
|
||||||
|
|
||||||
|
private float targetTimeBonus = 0f;
|
||||||
|
private float areaTimeBonus = 0f;
|
||||||
|
private float freeTimeBonus = 0f;
|
||||||
|
private float targetInAreaTime = 0f;
|
||||||
|
private float lastFrameTime = 0f;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
targetCon = targetConObj.GetComponent<TargetController>();
|
||||||
|
blockCont = blockConObj.GetComponent<SceneBlockContainer>();
|
||||||
|
areaTimeBonus = areaTimeBonusPerSec * timeLimit;
|
||||||
|
freeTimeBonus = freeTimeBonusPerSec * timeLimit;
|
||||||
|
targetTimeBonus = targetTimeBonusPerSec * timeLimit;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
if (targetCon.targetTypeInt != (int)TargetController.Targets.Free)
|
||||||
|
{
|
||||||
|
(agentDistance, agentInArea) = blockCont.getAgentTargetDistanceAndInside(agentObj.transform.position);
|
||||||
|
// attack goto or defence target
|
||||||
|
if (agentInArea == 1)
|
||||||
|
{
|
||||||
|
// agent out of area
|
||||||
|
targetInAreaTime += Time.time - lastFrameTime;
|
||||||
|
}
|
||||||
|
areaTimeBonus = areaTimeBonusPerSec * (targetCon.leftTime + targetInAreaTime);
|
||||||
|
freeTimeBonus = freeTimeBonusPerSec * targetCon.leftTime;
|
||||||
|
targetTimeBonus = targetTimeBonusPerSec * targetCon.leftTime;
|
||||||
|
lastFrameTime = Time.time;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// free target
|
||||||
|
areaTimeBonus = areaTimeBonusPerSec * targetCon.leftTime;
|
||||||
|
freeTimeBonus = freeTimeBonusPerSec * targetCon.leftTime;
|
||||||
|
targetTimeBonus = targetTimeBonusPerSec * targetCon.leftTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
hitReward = hitRewardDefault + freeTimeBonus;
|
||||||
|
killReward = killRewardDefault + freeTimeBonus;
|
||||||
|
winReward = winRewardDefault + targetTimeBonus;
|
||||||
|
killInAreaEnemyReward = killInAreaEnemyRewardDefault + targetTimeBonus;
|
||||||
|
inAreaReward = inAreaRewardDefault + areaTimeBonus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void resetTimeBonusReward()
|
||||||
|
{
|
||||||
|
areaTimeBonus = areaTimeBonusPerSec * timeLimit;
|
||||||
|
freeTimeBonus = freeTimeBonusPerSec * timeLimit;
|
||||||
|
targetInAreaTime = 0f;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/InGame/ParameterContainer.cs.meta
Normal file
11
Assets/Script/InGame/ParameterContainer.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cab5ee46e8af1134b840e91077e7592b
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -31,6 +31,7 @@ public class RaySensors : MonoBehaviour
|
|||||||
public float[] rayDisResult;
|
public float[] rayDisResult;
|
||||||
|
|
||||||
[System.NonSerialized] public int totalRayNum;
|
[System.NonSerialized] public int totalRayNum;
|
||||||
|
private string myTag = "";
|
||||||
GameObject[] linesOBJ;
|
GameObject[] linesOBJ;
|
||||||
GameObject[] rayInfoOBJ;
|
GameObject[] rayInfoOBJ;
|
||||||
LineRenderer[] lineRenderers;
|
LineRenderer[] lineRenderers;
|
||||||
@ -39,7 +40,7 @@ public class RaySensors : MonoBehaviour
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
myTag = gameObject.tag;
|
||||||
totalRayNum = halfOuterRayNum * 2 + focusRayNum;
|
totalRayNum = halfOuterRayNum * 2 + focusRayNum;
|
||||||
rayTagResult = new float[totalRayNum];
|
rayTagResult = new float[totalRayNum];
|
||||||
rayDisResult = new float[totalRayNum];
|
rayDisResult = new float[totalRayNum];
|
||||||
@ -63,15 +64,17 @@ private void Start()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tagToInt(string tag)
|
public int tagToInt(string tag)
|
||||||
{
|
{
|
||||||
switch (tag)
|
switch (tag)
|
||||||
{
|
{
|
||||||
case "Wall":
|
case "Wall":
|
||||||
return 1;
|
return 1;
|
||||||
case "Enemy":
|
|
||||||
return 2;
|
|
||||||
default:
|
default:
|
||||||
|
if(tag != myTag)
|
||||||
|
{
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
197
Assets/Script/InGame/SceneBlock.cs
Normal file
197
Assets/Script/InGame/SceneBlock.cs
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class SceneBlock : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject FirebasesAreaObj;
|
||||||
|
public GameObject EnemyContainerObj;
|
||||||
|
public float group1InareaNum = 0;
|
||||||
|
public float group2InareaNum = 0;
|
||||||
|
public float belongRatio = 0;
|
||||||
|
public float blockSize = 10f;
|
||||||
|
public Vector3 firebasesAreaPosition;
|
||||||
|
public float firebasesAreaScale;
|
||||||
|
public float firebasesAreaDiameter;
|
||||||
|
|
||||||
|
public enum SceneType { Go, Attack, Defence }
|
||||||
|
public SceneType sceneType;
|
||||||
|
public bool isDestroyed = false;
|
||||||
|
|
||||||
|
// firebase state
|
||||||
|
public string group1Tag = "Player";
|
||||||
|
public string group2Tag = "Enemy";
|
||||||
|
public float belongMaxPoint = 10f;
|
||||||
|
public float firebasesBelong; // -10 mean's belon to group2Tag 10 = belon to group1Tag
|
||||||
|
public float addPointInterval = 0.1f; // add point every addPointInterval scecond
|
||||||
|
public float stayTimeNeeded = 5f; // howmany time to stay at area to get this area 0->10
|
||||||
|
|
||||||
|
private float addPointEachInterval; // add point in each interval
|
||||||
|
private float intervalStart;
|
||||||
|
private GameObject EnvironmentObj;
|
||||||
|
public GameObject[] group1Objs;
|
||||||
|
public GameObject[] group2Objs;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
firebasesAreaPosition = transform.position + FirebasesAreaObj.transform.position;
|
||||||
|
firebasesAreaScale = FirebasesAreaObj.transform.localScale.x;
|
||||||
|
firebasesAreaDiameter = firebasesAreaScale * blockSize;
|
||||||
|
firebasesBelong = -belongMaxPoint;
|
||||||
|
addPointEachInterval = belongMaxPoint / (stayTimeNeeded / addPointInterval);
|
||||||
|
intervalStart = Time.time;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (Time.time - intervalStart >= addPointInterval)
|
||||||
|
{
|
||||||
|
group1InareaNum = getInAreaNumber(group1Tag);
|
||||||
|
group2InareaNum = getInAreaNumber(group2Tag);
|
||||||
|
belongRatio = group1InareaNum - group2InareaNum;
|
||||||
|
if (belongRatio > 0)
|
||||||
|
{
|
||||||
|
// group 1 have the advantage!
|
||||||
|
firebasesBelong += addPointEachInterval;
|
||||||
|
if (firebasesBelong >= belongMaxPoint)
|
||||||
|
{
|
||||||
|
firebasesBelong = belongMaxPoint;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (belongRatio < 0)
|
||||||
|
{
|
||||||
|
// group 2 have the advantage!
|
||||||
|
firebasesBelong -= addPointEachInterval;
|
||||||
|
if (firebasesBelong <= -belongMaxPoint)
|
||||||
|
{
|
||||||
|
firebasesBelong = -belongMaxPoint;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intervalStart = Time.time;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Initialize thi scene block should be excuted after enemy created
|
||||||
|
public void initBlock(GameObject envObj)
|
||||||
|
{
|
||||||
|
//Buffer all Player or enemy obj int this environment to list
|
||||||
|
EnvironmentObj = envObj;
|
||||||
|
GameObject[] allGroup1Objs = GameObject.FindGameObjectsWithTag(group1Tag);
|
||||||
|
GameObject[] allGroup2Objs = GameObject.FindGameObjectsWithTag(group2Tag);
|
||||||
|
List<GameObject> group1ObjsList = new List<GameObject>();
|
||||||
|
List<GameObject> group2ObjsList = new List<GameObject>();
|
||||||
|
foreach (GameObject obj in allGroup1Objs)
|
||||||
|
{
|
||||||
|
if (obj.transform.root.gameObject == envObj && !obj.GetComponent<states>().isDead)
|
||||||
|
{
|
||||||
|
group1ObjsList.Add(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (GameObject obj in allGroup2Objs)
|
||||||
|
{
|
||||||
|
if(obj.transform.root.gameObject == envObj && !obj.GetComponent<states>().isDead)
|
||||||
|
{
|
||||||
|
group2ObjsList.Add(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
group1Objs = group1ObjsList.ToArray();
|
||||||
|
group2Objs = group2ObjsList.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
//check game over 0=notover 1=win
|
||||||
|
public int checkOver()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get in area player number by tag
|
||||||
|
public float getInAreaNumber(string thisTag)
|
||||||
|
{
|
||||||
|
float inAreaNum = 0;
|
||||||
|
float dist = 0f;
|
||||||
|
float isInarea = 0f;
|
||||||
|
int index = 0;
|
||||||
|
if (thisTag == group1Tag)
|
||||||
|
{
|
||||||
|
foreach(GameObject obj in group1Objs)
|
||||||
|
{
|
||||||
|
// if object is dead then delete it from list
|
||||||
|
if (obj == null)
|
||||||
|
{
|
||||||
|
// delete null object from list
|
||||||
|
List<GameObject> group1ObjsList = new List<GameObject>(group1Objs);
|
||||||
|
group1ObjsList.RemoveAt(index);
|
||||||
|
group1Objs = group1ObjsList.ToArray();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
(dist, isInarea) = getDist_inArea(obj.transform.position);
|
||||||
|
if (isInarea != 0f)
|
||||||
|
{
|
||||||
|
inAreaNum += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
}else if(thisTag == group2Tag)
|
||||||
|
{
|
||||||
|
foreach(GameObject obj in group2Objs)
|
||||||
|
{
|
||||||
|
// if object is dead then delete it from list
|
||||||
|
if (obj == null)
|
||||||
|
{
|
||||||
|
// delete null object from list
|
||||||
|
List<GameObject> group2ObjsList = new List<GameObject>(group2Objs);
|
||||||
|
group2ObjsList.RemoveAt(index);
|
||||||
|
group2Objs = group2ObjsList.ToArray();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
(dist, isInarea) = getDist_inArea(obj.transform.position);
|
||||||
|
if (isInarea != 0f)
|
||||||
|
{
|
||||||
|
inAreaNum += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogError("SceneBlock.getinAreaNumber:TagError");
|
||||||
|
}
|
||||||
|
return inAreaNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get this position and target's distance and is in firebase area
|
||||||
|
public (float, int) getDist_inArea(Vector3 thisPosition)
|
||||||
|
{
|
||||||
|
thisPosition.y = FirebasesAreaObj.transform.position.y;
|
||||||
|
float dist = Vector3.Distance(thisPosition, FirebasesAreaObj.transform.position) - (firebasesAreaDiameter/2);
|
||||||
|
int isinarea = 0;
|
||||||
|
if (dist <= 0)
|
||||||
|
{
|
||||||
|
dist = 0f;
|
||||||
|
isinarea = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isinarea = 0;
|
||||||
|
}
|
||||||
|
return (dist, isinarea);
|
||||||
|
}
|
||||||
|
|
||||||
|
//destroy this block
|
||||||
|
public void destroyMe()
|
||||||
|
{
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
foreach (Transform childObj in EnemyContainerObj.transform)
|
||||||
|
{
|
||||||
|
childObj.GetComponent<states>().destroyMe();
|
||||||
|
}
|
||||||
|
isDestroyed = true;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/InGame/SceneBlock.cs.meta
Normal file
11
Assets/Script/InGame/SceneBlock.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e1ae09061637cf4ead72321c221f783
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
77
Assets/Script/InGame/SceneBlockContainer.cs
Normal file
77
Assets/Script/InGame/SceneBlockContainer.cs
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class SceneBlockContainer : MonoBehaviour
|
||||||
|
{
|
||||||
|
public float sceneSize = 10f;
|
||||||
|
public GameObject EnvironmentObj;
|
||||||
|
public GameObject[] attackBlockPrefabs = new GameObject[1];
|
||||||
|
public GameObject[] goBlockPrefabs = new GameObject[1];
|
||||||
|
public GameObject[] defencePrefabs = new GameObject[1];
|
||||||
|
|
||||||
|
private GameObject thisBlockObj;
|
||||||
|
public SceneBlock thisBlock;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
// create block random
|
||||||
|
public void createNewBlock(int targetType, int blockType, Vector3 blockPosition,string tag1,string tag2)
|
||||||
|
{
|
||||||
|
// check if thisBlock is deleted
|
||||||
|
if (thisBlockObj != null)
|
||||||
|
{
|
||||||
|
// delete thisBlock
|
||||||
|
Debug.LogWarning("Block not clear!");
|
||||||
|
destroyBlock();
|
||||||
|
}
|
||||||
|
// choose target type
|
||||||
|
switch (targetType)
|
||||||
|
{
|
||||||
|
case (int)TargetController.Targets.Go:
|
||||||
|
// goto
|
||||||
|
thisBlockObj = Instantiate(goBlockPrefabs[blockType], blockPosition + EnvironmentObj.transform.position, Quaternion.identity, transform);
|
||||||
|
thisBlock = thisBlockObj.GetComponent<SceneBlock>();
|
||||||
|
thisBlock.group1Tag = tag1;
|
||||||
|
thisBlock.group2Tag = tag2;
|
||||||
|
sceneSize = thisBlock.blockSize;
|
||||||
|
break;
|
||||||
|
case (int)TargetController.Targets.Attack:
|
||||||
|
// attack
|
||||||
|
thisBlockObj = Instantiate(attackBlockPrefabs[blockType], blockPosition+ EnvironmentObj.transform.position, Quaternion.identity, transform);
|
||||||
|
thisBlock = thisBlockObj.GetComponent<SceneBlock>();
|
||||||
|
thisBlock.group1Tag = tag1;
|
||||||
|
thisBlock.group2Tag = tag2;
|
||||||
|
sceneSize = thisBlock.blockSize;
|
||||||
|
break;
|
||||||
|
case (int)TargetController.Targets.Defence:
|
||||||
|
// defence
|
||||||
|
thisBlockObj = Instantiate(defencePrefabs[blockType], blockPosition + EnvironmentObj.transform.position, Quaternion.identity, transform);
|
||||||
|
thisBlock = thisBlockObj.GetComponent<SceneBlock>();
|
||||||
|
thisBlock.group1Tag = tag1;
|
||||||
|
thisBlock.group2Tag = tag2;
|
||||||
|
sceneSize = thisBlock.blockSize;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// delete thisBlock
|
||||||
|
public void destroyBlock()
|
||||||
|
{
|
||||||
|
if (thisBlock != null)
|
||||||
|
{
|
||||||
|
thisBlock.destroyMe();
|
||||||
|
}
|
||||||
|
thisBlockObj = null;
|
||||||
|
thisBlock = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public (float, int) getAgentTargetDistanceAndInside(Vector3 agentPosition)
|
||||||
|
{
|
||||||
|
return thisBlock.getDist_inArea(agentPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
11
Assets/Script/InGame/SceneBlockContainer.cs.meta
Normal file
11
Assets/Script/InGame/SceneBlockContainer.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 94687c2b580b85d4a8ced43c8cfc7bf2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
379
Assets/Script/InGame/TargetController.cs
Normal file
379
Assets/Script/InGame/TargetController.cs
Normal file
@ -0,0 +1,379 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using Random = UnityEngine.Random;
|
||||||
|
|
||||||
|
public class TargetController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject EnvironmentObj;
|
||||||
|
public GameObject AgentObj;
|
||||||
|
public GameObject SceneBlockContainerObj;
|
||||||
|
public GameObject EnemyContainerObj;
|
||||||
|
public GameObject ParameterContainerObj;
|
||||||
|
public GameObject EnvironmentUIObj;
|
||||||
|
public GameObject WorldUIObj;
|
||||||
|
// area
|
||||||
|
public GameObject edgeUp;
|
||||||
|
public GameObject edgeDown;
|
||||||
|
public GameObject edgeLeft;
|
||||||
|
public GameObject edgeRight;
|
||||||
|
public GameObject edgeAgent_Enemy;
|
||||||
|
|
||||||
|
//group
|
||||||
|
public string group1Tag = "Player";
|
||||||
|
public string group2Tag = "Enemy";
|
||||||
|
|
||||||
|
public float minEnemyAreaX;
|
||||||
|
[System.NonSerialized] public float maxEnemyAreaX;
|
||||||
|
[System.NonSerialized] public float minEnemyAreaZ;
|
||||||
|
[System.NonSerialized] public float maxEnemyAreaZ;
|
||||||
|
[System.NonSerialized] public float minAgentAreaX;
|
||||||
|
[System.NonSerialized] public float maxAgentAreaX;
|
||||||
|
[System.NonSerialized] public float minAgentAreaZ;
|
||||||
|
[System.NonSerialized] public float maxAgentAreaZ;
|
||||||
|
[System.NonSerialized] public float startTime = 0f;
|
||||||
|
[System.NonSerialized] public float leftTime = 0f;
|
||||||
|
|
||||||
|
[SerializeField, Range(0f, 1f)] public float attackProb = 0.2f;
|
||||||
|
[SerializeField, Range(0f, 1f)] public float gotoProb = 0.2f;
|
||||||
|
[SerializeField, Range(0f, 1f)] public float defenceProb = 0.2f;
|
||||||
|
|
||||||
|
[System.NonSerialized] public int targetTypeInt;
|
||||||
|
public enum Targets { Free, Go, Attack, Defence, Num };// Num is use for get total target bumber
|
||||||
|
public enum EndType { Win, Lose, Running, Num };
|
||||||
|
[System.NonSerialized] public int targetNum = 0;
|
||||||
|
private Dictionary<int, float[]> oneHotRarget = new Dictionary<int, float[]>();
|
||||||
|
|
||||||
|
private float freeProb;
|
||||||
|
private float sceneSize;
|
||||||
|
private float lastDistance;
|
||||||
|
private Vector3 targetPosition;
|
||||||
|
private Vector3 targetLocalPosition;
|
||||||
|
private bool firstRewardFlag = true;
|
||||||
|
private SceneBlockContainer blockCont;
|
||||||
|
private EnemyContainer enemyCont;
|
||||||
|
private EnvironmentUIControl envUICon;
|
||||||
|
private ParameterContainer paramCon;
|
||||||
|
private CharacterController agentCharaCon;
|
||||||
|
private WorldUIController worldUICon;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
minEnemyAreaX = edgeLeft.transform.localPosition.x + 1.0f;
|
||||||
|
maxEnemyAreaX = edgeRight.transform.localPosition.x - 1.0f;
|
||||||
|
minEnemyAreaZ = edgeAgent_Enemy.transform.localPosition.z + 1.0f;
|
||||||
|
maxEnemyAreaZ = edgeUp.transform.localPosition.z - 1.0f;
|
||||||
|
|
||||||
|
minAgentAreaX = edgeLeft.transform.localPosition.x + 1.0f;
|
||||||
|
maxAgentAreaX = edgeRight.transform.localPosition.x - 1.0f;
|
||||||
|
minAgentAreaZ = edgeDown.transform.localPosition.z + 1.0f;
|
||||||
|
maxAgentAreaZ = edgeAgent_Enemy.transform.localPosition.z - 1.0f;
|
||||||
|
|
||||||
|
blockCont = SceneBlockContainerObj.GetComponent<SceneBlockContainer>();
|
||||||
|
envUICon = EnvironmentUIObj.GetComponent<EnvironmentUIControl>();
|
||||||
|
enemyCont = EnemyContainerObj.GetComponent<EnemyContainer>();
|
||||||
|
agentCharaCon = AgentObj.GetComponent<CharacterController>();
|
||||||
|
paramCon = ParameterContainerObj.GetComponent<ParameterContainer>();
|
||||||
|
worldUICon = WorldUIObj.GetComponent<WorldUIController>();
|
||||||
|
freeProb = 1 - attackProb - gotoProb - defenceProb;
|
||||||
|
targetNum = (int)Targets.Num;
|
||||||
|
if (freeProb < 0)
|
||||||
|
{
|
||||||
|
Debug.LogError("target percentage wrong");
|
||||||
|
}
|
||||||
|
|
||||||
|
// initialize a simple fake onehot encoder.
|
||||||
|
for (int i = 0; i < targetNum; i++)
|
||||||
|
{
|
||||||
|
float[] onehotList = new float[targetNum];
|
||||||
|
for (int j = 0; j < targetNum; j++)
|
||||||
|
{
|
||||||
|
onehotList[j] = 0;
|
||||||
|
}
|
||||||
|
onehotList[i] = 1;
|
||||||
|
oneHotRarget.Add(i, onehotList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
leftTime = paramCon.timeLimit - Time.time + startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void rollNewScene()
|
||||||
|
{
|
||||||
|
startTime = Time.time;// Reset StartTime as now time
|
||||||
|
float randTargetType = UnityEngine.Random.Range(0f, 1f);
|
||||||
|
if (randTargetType <= gotoProb)
|
||||||
|
{
|
||||||
|
// goto target spawn
|
||||||
|
Debug.Log("GOTO THIS TARGET!");
|
||||||
|
targetTypeInt = (int)Targets.Go;
|
||||||
|
int randBlockType = Random.Range(0, blockCont.goBlockPrefabs.Length);
|
||||||
|
// get choosed scene size
|
||||||
|
sceneSize = blockCont.goBlockPrefabs[randBlockType].GetComponent<SceneBlock>().blockSize;
|
||||||
|
float randX = UnityEngine.Random.Range(minEnemyAreaX + sceneSize + 1f, maxEnemyAreaX - sceneSize - 1f);
|
||||||
|
float randZ = UnityEngine.Random.Range(minEnemyAreaZ + sceneSize + 1f, maxEnemyAreaZ - sceneSize - 1f);
|
||||||
|
targetPosition = new Vector3(randX, 0f, randZ);
|
||||||
|
// Init Agent position
|
||||||
|
moveAgentToSpwanArea();
|
||||||
|
// init scene block
|
||||||
|
blockCont.destroyBlock();
|
||||||
|
blockCont.createNewBlock(targetTypeInt, randBlockType, targetPosition, group1Tag, group2Tag);
|
||||||
|
enemyCont.destroyAllEnemys();
|
||||||
|
enemyCont.randomInitEnemysExcept(paramCon.enemyNum, targetPosition, sceneSize);
|
||||||
|
blockCont.thisBlock.initBlock(EnvironmentObj);
|
||||||
|
// set startDistance
|
||||||
|
firstRewardFlag = true;
|
||||||
|
}
|
||||||
|
else if (randTargetType > gotoProb && randTargetType <= gotoProb + attackProb)
|
||||||
|
{
|
||||||
|
// attack target spawn
|
||||||
|
Debug.Log("ATTACK!");
|
||||||
|
targetTypeInt = (int)Targets.Attack;
|
||||||
|
int randBlockType = Random.Range(0, blockCont.attackBlockPrefabs.Length);
|
||||||
|
// get choosed scene size
|
||||||
|
sceneSize = blockCont.attackBlockPrefabs[randBlockType].GetComponent<SceneBlock>().blockSize;
|
||||||
|
float randX = UnityEngine.Random.Range(minEnemyAreaX + sceneSize + 1f, maxEnemyAreaX - sceneSize - 1f);
|
||||||
|
float randZ = UnityEngine.Random.Range(minEnemyAreaZ + sceneSize + 1f, maxEnemyAreaZ - sceneSize - 1f);
|
||||||
|
targetPosition = new Vector3(randX, 0f, randZ);
|
||||||
|
// Init Agent position
|
||||||
|
moveAgentToSpwanArea();
|
||||||
|
// init scene block
|
||||||
|
blockCont.destroyBlock();
|
||||||
|
blockCont.createNewBlock(targetTypeInt, randBlockType, targetPosition, group1Tag, group2Tag);
|
||||||
|
enemyCont.destroyAllEnemys();
|
||||||
|
enemyCont.randomInitEnemysExcept(paramCon.enemyNum, targetPosition, sceneSize);
|
||||||
|
blockCont.thisBlock.initBlock(EnvironmentObj);
|
||||||
|
// set startDistance
|
||||||
|
firstRewardFlag = true;
|
||||||
|
}
|
||||||
|
else if (randTargetType > gotoProb + attackProb && randTargetType <= gotoProb + attackProb + defenceProb)
|
||||||
|
{
|
||||||
|
// defence target spawn
|
||||||
|
Debug.Log("DEFENCE!");
|
||||||
|
targetTypeInt = (int)Targets.Defence;
|
||||||
|
int randBlockType = Random.Range(0, blockCont.attackBlockPrefabs.Length);
|
||||||
|
// get choosed scene size
|
||||||
|
sceneSize = blockCont.defencePrefabs[randBlockType].GetComponent<SceneBlock>().blockSize;
|
||||||
|
float randX = UnityEngine.Random.Range(minEnemyAreaX + sceneSize + 1f, maxEnemyAreaX - sceneSize - 1f);
|
||||||
|
float randZ = UnityEngine.Random.Range(minEnemyAreaZ + sceneSize + 1f, maxEnemyAreaZ - sceneSize - 1f);
|
||||||
|
targetPosition = new Vector3(randX, 0f, randZ);
|
||||||
|
// Init Agent position
|
||||||
|
moveAgentTo(targetPosition);
|
||||||
|
// init scene block
|
||||||
|
blockCont.destroyBlock();
|
||||||
|
blockCont.createNewBlock(targetTypeInt, randBlockType, targetPosition, group1Tag, group2Tag);
|
||||||
|
enemyCont.destroyAllEnemys();
|
||||||
|
enemyCont.randomInitEnemysExcept(paramCon.enemyNum, targetPosition, sceneSize);
|
||||||
|
blockCont.thisBlock.initBlock(EnvironmentObj);
|
||||||
|
// set startDistance
|
||||||
|
firstRewardFlag = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log("Free");
|
||||||
|
targetTypeInt = (int)Targets.Free;
|
||||||
|
enemyCont.destroyAllEnemys();
|
||||||
|
enemyCont.randomInitEnemys(paramCon.enemyNum);
|
||||||
|
moveAgentToSpwanArea();
|
||||||
|
blockCont.destroyBlock();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// get target observation states
|
||||||
|
public float[] getTargetStates()
|
||||||
|
{
|
||||||
|
// targettype, x,y,z, firebasesAreaDiameter
|
||||||
|
List<float> targetState = new List<float>();
|
||||||
|
if (targetTypeInt == (int)Targets.Free)
|
||||||
|
{
|
||||||
|
targetState.AddRange(oneHotRarget[targetTypeInt]);
|
||||||
|
targetState.AddRange(new float[5] { 0f, 0f, 0f, 0f, 0f });
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
targetState.AddRange(oneHotRarget[targetTypeInt]);
|
||||||
|
targetState.AddRange(new float[5] { targetPosition.x, targetPosition.y, targetPosition.z, blockCont.thisBlock.firebasesAreaDiameter, blockCont.thisBlock.belongRatio });
|
||||||
|
}
|
||||||
|
return targetState.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
// move Agent into Agent Spawn Area
|
||||||
|
public void moveAgentToSpwanArea()
|
||||||
|
{
|
||||||
|
float randX = UnityEngine.Random.Range(minAgentAreaX, maxAgentAreaX);
|
||||||
|
float randZ = UnityEngine.Random.Range(minAgentAreaZ, maxAgentAreaZ);
|
||||||
|
int Y = 1;
|
||||||
|
Vector3 initAgentLoc = new Vector3(randX, Y, randZ);
|
||||||
|
moveAgentTo(initAgentLoc);
|
||||||
|
}
|
||||||
|
|
||||||
|
// move Agent to this position
|
||||||
|
public void moveAgentTo(Vector3 thisPosition)
|
||||||
|
{
|
||||||
|
// while using transform.localPosition to move character
|
||||||
|
// u should turn off character Controller or it won't work
|
||||||
|
agentCharaCon.enabled = false;
|
||||||
|
AgentObj.transform.localPosition = thisPosition;
|
||||||
|
agentCharaCon.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// caulculate sceneReward if close to target then get great reward
|
||||||
|
public float getSceneReward(float nowDistance)
|
||||||
|
{
|
||||||
|
if (firstRewardFlag)
|
||||||
|
{
|
||||||
|
(lastDistance, _) = blockCont.getAgentTargetDistanceAndInside(AgentObj.transform.position);
|
||||||
|
firstRewardFlag = false;
|
||||||
|
}
|
||||||
|
float thisSceneReward = 0f;
|
||||||
|
thisSceneReward = paramCon.distanceReward * (lastDistance - nowDistance);
|
||||||
|
lastDistance = nowDistance;
|
||||||
|
return thisSceneReward;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check over and get rewards
|
||||||
|
// 1 = success,2 = overtime,0 = notover
|
||||||
|
public (int, float) checkOverAndRewards()
|
||||||
|
{
|
||||||
|
int endTypeInt = 0;
|
||||||
|
float thisReward = 0;
|
||||||
|
int inArea = 0;
|
||||||
|
float nowDistance = 0f;
|
||||||
|
switch (targetTypeInt)
|
||||||
|
{
|
||||||
|
case (int)Targets.Go:
|
||||||
|
// goto
|
||||||
|
(nowDistance, inArea) = blockCont.getAgentTargetDistanceAndInside(AgentObj.transform.position);
|
||||||
|
envUICon.updateTargetGauge(blockCont.thisBlock.firebasesBelong, blockCont.thisBlock.belongMaxPoint);
|
||||||
|
if (blockCont.thisBlock.firebasesBelong >= blockCont.thisBlock.belongMaxPoint)
|
||||||
|
{
|
||||||
|
// win
|
||||||
|
// let the area belongs to me
|
||||||
|
thisReward = paramCon.winReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Win;
|
||||||
|
}
|
||||||
|
else if (leftTime <= 0)
|
||||||
|
{
|
||||||
|
// time out lose
|
||||||
|
thisReward = paramCon.loseReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Lose;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// keep on keeping on!
|
||||||
|
|
||||||
|
thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Running;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case (int)Targets.Attack:
|
||||||
|
// attack
|
||||||
|
(nowDistance, inArea) = blockCont.getAgentTargetDistanceAndInside(AgentObj.transform.position);
|
||||||
|
envUICon.updateTargetGauge(blockCont.thisBlock.firebasesBelong, blockCont.thisBlock.belongMaxPoint);
|
||||||
|
if (blockCont.thisBlock.firebasesBelong >= blockCont.thisBlock.belongMaxPoint && blockCont.thisBlock.getInAreaNumber(group2Tag) <= 0)
|
||||||
|
{
|
||||||
|
// win
|
||||||
|
// let the area belongs to me and kill every enmy in this area.
|
||||||
|
thisReward = paramCon.winReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Win;
|
||||||
|
}
|
||||||
|
else if (leftTime <= 0)
|
||||||
|
{
|
||||||
|
// time out lose
|
||||||
|
thisReward = paramCon.loseReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Lose;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// keep on keeping on!
|
||||||
|
thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Running;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case (int)Targets.Defence:
|
||||||
|
//defence
|
||||||
|
(nowDistance, inArea) = blockCont.getAgentTargetDistanceAndInside(AgentObj.transform.position);
|
||||||
|
envUICon.updateTargetGauge(blockCont.thisBlock.firebasesBelong, blockCont.thisBlock.belongMaxPoint);
|
||||||
|
if (leftTime <= 0 && blockCont.thisBlock.firebasesBelong >= 0f)
|
||||||
|
{
|
||||||
|
// win
|
||||||
|
// time over and the area still mine
|
||||||
|
thisReward = paramCon.winReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Win;
|
||||||
|
}
|
||||||
|
else if (blockCont.thisBlock.firebasesBelong <= blockCont.thisBlock.belongMaxPoint)
|
||||||
|
{
|
||||||
|
// lost area lose
|
||||||
|
thisReward = paramCon.loseReward;
|
||||||
|
//thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Lose;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// keep on keeping on!
|
||||||
|
thisReward = (paramCon.inAreaReward * inArea) + getSceneReward(nowDistance);
|
||||||
|
endTypeInt = (int)EndType.Running;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
//free kill
|
||||||
|
if (EnemyContainerObj.transform.childCount <= 0)
|
||||||
|
{
|
||||||
|
// win
|
||||||
|
//thisReward = paramCon.winReward + (paramCon.timeBonusPerSecReward * leftTime);
|
||||||
|
thisReward = 0f;
|
||||||
|
endTypeInt = (int)EndType.Win;
|
||||||
|
}
|
||||||
|
else if (Time.time - startTime >= paramCon.timeLimit)
|
||||||
|
{
|
||||||
|
// lose
|
||||||
|
//thisReward = paramCon.loseReward;
|
||||||
|
thisReward = 0f;
|
||||||
|
endTypeInt = (int)EndType.Lose;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// keep on keeping on!
|
||||||
|
endTypeInt = (int)EndType.Running;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
envUICon.showResult(endTypeInt);
|
||||||
|
worldUICon.updateChart(targetTypeInt, endTypeInt);
|
||||||
|
return (endTypeInt, thisReward);
|
||||||
|
}
|
||||||
|
|
||||||
|
// calculate kill reward base on killed enemy's position
|
||||||
|
public float killReward(Vector3 enemyPosition)
|
||||||
|
{
|
||||||
|
float thisKillReward = 0f;
|
||||||
|
if (targetTypeInt == (int)Targets.Attack)
|
||||||
|
{
|
||||||
|
// attack
|
||||||
|
(_, int isInArea) = blockCont.thisBlock.getDist_inArea(enemyPosition);
|
||||||
|
if (isInArea == 1)
|
||||||
|
{
|
||||||
|
thisKillReward = paramCon.killInAreaEnemyReward;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
thisKillReward = paramCon.killReward;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// goto & defence & free
|
||||||
|
thisKillReward = paramCon.killReward;
|
||||||
|
}
|
||||||
|
return thisKillReward;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/InGame/TargetController.cs.meta
Normal file
11
Assets/Script/InGame/TargetController.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 92a93d5d33962bc44b9fd2368358d47e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
68
Assets/Script/InGame/WorldUIController.cs
Normal file
68
Assets/Script/InGame/WorldUIController.cs
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using XCharts.Runtime;
|
||||||
|
|
||||||
|
public class WorldUIController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public LineChart WinChart;
|
||||||
|
public int[] totalGames;
|
||||||
|
public int[] winGames;
|
||||||
|
|
||||||
|
private int maxXAxis = 0;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
totalGames = new int[(int)TargetController.Targets.Num];
|
||||||
|
winGames = new int[(int)TargetController.Targets.Num];
|
||||||
|
Array.Clear(totalGames, 0, (int)TargetController.Targets.Num);
|
||||||
|
Array.Clear(winGames, 0, (int)TargetController.Targets.Num);
|
||||||
|
//WinChart.Init();
|
||||||
|
WinChart.RemoveData();
|
||||||
|
for (int i = 0; i < (int)TargetController.Targets.Num; i++)
|
||||||
|
{
|
||||||
|
string lineName = Enum.GetName(typeof(TargetController.Targets), i);
|
||||||
|
WinChart.AddSerie<Line>(lineName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public void updateChart(int targetType, int endType)
|
||||||
|
{
|
||||||
|
float winRatio = 0f;
|
||||||
|
switch (endType)
|
||||||
|
{
|
||||||
|
case (int)TargetController.EndType.Win:
|
||||||
|
//Win
|
||||||
|
totalGames[targetType] += 1;
|
||||||
|
winGames[targetType] += 1;
|
||||||
|
winRatio = (float)winGames[targetType] / totalGames[targetType];
|
||||||
|
WinChart.AddData(targetType, winRatio);
|
||||||
|
if (totalGames[targetType] > maxXAxis)
|
||||||
|
{
|
||||||
|
maxXAxis = totalGames[targetType];
|
||||||
|
WinChart.AddXAxisData(Convert.ToString(maxXAxis));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case (int)TargetController.EndType.Lose:
|
||||||
|
//lose
|
||||||
|
totalGames[targetType] += 1;
|
||||||
|
winRatio = (float)winGames[targetType] / totalGames[targetType];
|
||||||
|
WinChart.AddData(targetType, winRatio);
|
||||||
|
if (totalGames[targetType] > maxXAxis)
|
||||||
|
{
|
||||||
|
maxXAxis = totalGames[targetType];
|
||||||
|
WinChart.AddXAxisData(Convert.ToString(maxXAxis));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/InGame/WorldUIController.cs.meta
Normal file
11
Assets/Script/InGame/WorldUIController.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fe230edb81d2a59409af4d033c8d2e7a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
58
Assets/Script/InGame/states.cs
Normal file
58
Assets/Script/InGame/states.cs
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class states : MonoBehaviour
|
||||||
|
{
|
||||||
|
public bool isDead = false;
|
||||||
|
public float MaxHP = 100;
|
||||||
|
float myHP = 100;
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
myHP = MaxHP;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private void detactDeath()
|
||||||
|
{
|
||||||
|
if (myHP <= 0)
|
||||||
|
{
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
isDead = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// while got hit
|
||||||
|
public void ReactToHit(float Damage, GameObject damageSource)
|
||||||
|
{
|
||||||
|
myHP -= Damage;
|
||||||
|
Debug.Log("HP:" + myHP);
|
||||||
|
if (myHP <= 0)
|
||||||
|
{
|
||||||
|
if (damageSource.tag == "Player")
|
||||||
|
{
|
||||||
|
damageSource.GetComponent<AgentWithGun>().killRecord(transform.position);
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
isDead = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
isDead = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// get my hp from other script
|
||||||
|
public float getnowHP()
|
||||||
|
{
|
||||||
|
return myHP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void destroyMe()
|
||||||
|
{
|
||||||
|
Destroy(this.gameObject);
|
||||||
|
isDead = true;
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Script/InGame/states.cs.meta
Normal file
11
Assets/Script/InGame/states.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b25389b3cd1e7084d81fa752823ef210
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -50,3 +50,5 @@ MonoBehaviour:
|
|||||||
m_CustomThemes:
|
m_CustomThemes:
|
||||||
- {fileID: 11400000, guid: 289d2fc7f4ce24f73b9ed8ec52639f72, type: 2}
|
- {fileID: 11400000, guid: 289d2fc7f4ce24f73b9ed8ec52639f72, type: 2}
|
||||||
- {fileID: 11400000, guid: e1dc23a10de1e4c5dbfbaf74c4dfd218, type: 2}
|
- {fileID: 11400000, guid: e1dc23a10de1e4c5dbfbaf74c4dfd218, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 2d6d9eb3b43d4a94e98f3bf183836b70, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 0e489d624f47a3f4092d9e9e574eb883, type: 2}
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
public class parameterContainer : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Env")]
|
|
||||||
public bool lockMouse = false;
|
|
||||||
public float Damage = 50; // damage to enemy
|
|
||||||
public float fireRate = 0.5f;
|
|
||||||
public int enemyNum = 3;
|
|
||||||
public int timeLimit = 30;
|
|
||||||
public bool lockCameraX = false;
|
|
||||||
public bool lockCameraY = true;
|
|
||||||
|
|
||||||
[Header("Rewards")]
|
|
||||||
[Tooltip("Nothing happened reward")]
|
|
||||||
public float nonRewardDefault = -0.05f;
|
|
||||||
[Tooltip("Agent Do shoot action reward")]
|
|
||||||
public float shootRewardDefault = -0.1f;
|
|
||||||
[Tooltip("Agent Do shoot action but gun is not read")]
|
|
||||||
public float shootWithoutReadyRewardDefault = -0.15f;
|
|
||||||
[Tooltip("Hit Enemy reward")]
|
|
||||||
public float hitRewardDefault = 30.0f;
|
|
||||||
[Tooltip("Episode Win reward")]
|
|
||||||
public float winRewardDefault = 50.0f;
|
|
||||||
[Tooltip("Episode Lose reward")]
|
|
||||||
public float loseRewardDefault = -0.05f;
|
|
||||||
[Tooltip("Enemy down reward")]
|
|
||||||
public float killRewardDefault = 40.0f;
|
|
||||||
[Tooltip("Kill bonus reward stack to nothing happend reward")]
|
|
||||||
public float killBonusRewardDefault = 0.0f;
|
|
||||||
}
|
|
@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.monitor1394.xcharts": "https://github.com/XCharts-Team/XCharts.git#3.0",
|
"com.monitor1394.xcharts": "https://github.com/XCharts-Team/XCharts.git#3.0",
|
||||||
"com.unity.collab-proxy": "1.9.0",
|
"com.unity.collab-proxy": "1.17.6",
|
||||||
"com.unity.ide.rider": "2.0.7",
|
"com.unity.ide.rider": "3.0.16",
|
||||||
"com.unity.ide.visualstudio": "2.0.16",
|
"com.unity.ide.visualstudio": "2.0.16",
|
||||||
"com.unity.ide.vscode": "1.2.4",
|
"com.unity.ide.vscode": "1.2.5",
|
||||||
"com.unity.ml-agents": "2.0.1",
|
"com.unity.ml-agents": "2.0.1",
|
||||||
"com.unity.test-framework": "1.1.29",
|
"com.unity.probuilder": "5.0.3",
|
||||||
|
"com.unity.test-framework": "1.1.31",
|
||||||
"com.unity.textmeshpro": "3.0.6",
|
"com.unity.textmeshpro": "3.0.6",
|
||||||
"com.unity.timeline": "1.4.8",
|
"com.unity.timeline": "1.6.4",
|
||||||
"com.unity.ugui": "1.0.0",
|
"com.unity.ugui": "1.0.0",
|
||||||
"com.unity.modules.ai": "1.0.0",
|
"com.unity.modules.ai": "1.0.0",
|
||||||
"com.unity.modules.androidjni": "1.0.0",
|
"com.unity.modules.androidjni": "1.0.0",
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.burst": {
|
"com.unity.burst": {
|
||||||
"version": "1.6.0",
|
"version": "1.6.6",
|
||||||
"depth": 2,
|
"depth": 2,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -28,10 +28,12 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.collab-proxy": {
|
"com.unity.collab-proxy": {
|
||||||
"version": "1.9.0",
|
"version": "1.17.6",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"com.unity.services.core": "1.0.1"
|
||||||
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ext.nunit": {
|
"com.unity.ext.nunit": {
|
||||||
@ -42,11 +44,11 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.rider": {
|
"com.unity.ide.rider": {
|
||||||
"version": "2.0.7",
|
"version": "3.0.16",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.test-framework": "1.1.1"
|
"com.unity.ext.nunit": "1.0.6"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
@ -60,14 +62,14 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.vscode": {
|
"com.unity.ide.vscode": {
|
||||||
"version": "1.2.4",
|
"version": "1.2.5",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.mathematics": {
|
"com.unity.mathematics": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.6",
|
||||||
"depth": 3,
|
"depth": 3,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
@ -84,8 +86,44 @@
|
|||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
|
"com.unity.nuget.newtonsoft-json": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"depth": 2,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
|
"com.unity.probuilder": {
|
||||||
|
"version": "5.0.3",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.settings-manager": "1.0.3",
|
||||||
|
"com.unity.modules.physics": "1.0.0",
|
||||||
|
"com.unity.modules.imgui": "1.0.0"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
|
"com.unity.services.core": {
|
||||||
|
"version": "1.6.0",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.modules.unitywebrequest": "1.0.0",
|
||||||
|
"com.unity.nuget.newtonsoft-json": "3.0.2",
|
||||||
|
"com.unity.modules.androidjni": "1.0.0"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
|
"com.unity.settings-manager": {
|
||||||
|
"version": "1.0.3",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.29",
|
"version": "1.1.31",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -105,7 +143,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.timeline": {
|
"com.unity.timeline": {
|
||||||
"version": "1.4.8",
|
"version": "1.6.4",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -28,6 +28,7 @@ GraphicsSettings:
|
|||||||
m_LensFlare:
|
m_LensFlare:
|
||||||
m_Mode: 1
|
m_Mode: 1
|
||||||
m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
|
m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_VideoShadersIncludeMode: 2
|
||||||
m_AlwaysIncludedShaders:
|
m_AlwaysIncludedShaders:
|
||||||
- {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
@ -36,8 +37,7 @@ GraphicsSettings:
|
|||||||
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
m_PreloadedShaders: []
|
m_PreloadedShaders: []
|
||||||
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
type: 0}
|
|
||||||
m_CustomRenderPipeline: {fileID: 0}
|
m_CustomRenderPipeline: {fileID: 0}
|
||||||
m_TransparencySortMode: 0
|
m_TransparencySortMode: 0
|
||||||
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
|
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
|
||||||
@ -59,5 +59,5 @@ GraphicsSettings:
|
|||||||
m_AlbedoSwatchInfos: []
|
m_AlbedoSwatchInfos: []
|
||||||
m_LightsUseLinearIntensity: 0
|
m_LightsUseLinearIntensity: 0
|
||||||
m_LightsUseColorTemperature: 0
|
m_LightsUseColorTemperature: 0
|
||||||
|
m_DefaultRenderingLayerMask: 1
|
||||||
m_LogWhenShaderIsCompiled: 0
|
m_LogWhenShaderIsCompiled: 0
|
||||||
m_AllowEnlightenSupportForUpgradedProject: 0
|
|
||||||
|
35
ProjectSettings/MemorySettings.asset
Normal file
35
ProjectSettings/MemorySettings.asset
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!387306366 &1
|
||||||
|
MemorySettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_EditorMemorySettings:
|
||||||
|
m_MainAllocatorBlockSize: -1
|
||||||
|
m_ThreadAllocatorBlockSize: -1
|
||||||
|
m_MainGfxBlockSize: -1
|
||||||
|
m_ThreadGfxBlockSize: -1
|
||||||
|
m_CacheBlockSize: -1
|
||||||
|
m_TypetreeBlockSize: -1
|
||||||
|
m_ProfilerBlockSize: -1
|
||||||
|
m_ProfilerEditorBlockSize: -1
|
||||||
|
m_BucketAllocatorGranularity: -1
|
||||||
|
m_BucketAllocatorBucketsCount: -1
|
||||||
|
m_BucketAllocatorBlockSize: -1
|
||||||
|
m_BucketAllocatorBlockCount: -1
|
||||||
|
m_ProfilerBucketAllocatorGranularity: -1
|
||||||
|
m_ProfilerBucketAllocatorBucketsCount: -1
|
||||||
|
m_ProfilerBucketAllocatorBlockSize: -1
|
||||||
|
m_ProfilerBucketAllocatorBlockCount: -1
|
||||||
|
m_TempAllocatorSizeMain: -1
|
||||||
|
m_JobTempAllocatorBlockSize: -1
|
||||||
|
m_BackgroundJobTempAllocatorBlockSize: -1
|
||||||
|
m_JobTempAllocatorReducedBlockSize: -1
|
||||||
|
m_TempAllocatorSizeGIBakingWorker: -1
|
||||||
|
m_TempAllocatorSizeNavMeshWorker: -1
|
||||||
|
m_TempAllocatorSizeAudioWorker: -1
|
||||||
|
m_TempAllocatorSizeCloudWorker: -1
|
||||||
|
m_TempAllocatorSizeGfx: -1
|
||||||
|
m_TempAllocatorSizeJobWorker: -1
|
||||||
|
m_TempAllocatorSizeBackgroundWorker: -1
|
||||||
|
m_TempAllocatorSizePreloadManager: -1
|
||||||
|
m_PlatformMemorySettings: {}
|
133
ProjectSettings/Packages/com.unity.probuilder/Settings.json
Normal file
133
ProjectSettings/Packages/com.unity.probuilder/Settings.json
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
{
|
||||||
|
"m_Name": "Settings",
|
||||||
|
"m_Path": "ProjectSettings/Packages/com.unity.probuilder/Settings.json",
|
||||||
|
"m_Dictionary": {
|
||||||
|
"m_DictionaryValues": [
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.LogLevel, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "log.level",
|
||||||
|
"value": "{\"m_Value\":3}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.LogOutput, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "log.output",
|
||||||
|
"value": "{\"m_Value\":1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "log.path",
|
||||||
|
"value": "{\"m_Value\":\"ProBuilderLog.txt\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.SemVer, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "about.identifier",
|
||||||
|
"value": "{\"m_Value\":{\"m_Major\":5,\"m_Minor\":0,\"m_Patch\":3,\"m_Build\":-1,\"m_Type\":\"\",\"m_Metadata\":\"\",\"m_Date\":\"\"}}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.SemVer, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "preferences.version",
|
||||||
|
"value": "{\"m_Value\":{\"m_Major\":5,\"m_Minor\":0,\"m_Patch\":3,\"m_Build\":-1,\"m_Type\":\"\",\"m_Metadata\":\"\",\"m_Date\":\"\"}}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "UnityEngine.ProBuilder.ProBuilderEditor-isUtilityWindow",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.backFaceSelectEnabled",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.toolbarIconGUI",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.showSceneInfo",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "mesh.newShapesSnapToGrid",
|
||||||
|
"value": "{\"m_Value\":true}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "lightmapping.autoUnwrapLightmapUV",
|
||||||
|
"value": "{\"m_Value\":true}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.autoRecalculateCollisions",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "mesh.meshColliderIsConvex",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.showEditorNotifications",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "editor.stripProBuilderScriptsOnBuild",
|
||||||
|
"value": "{\"m_Value\":true}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
"key": "experimental.enabled",
|
||||||
|
"value": "{\"m_Value\":false}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.SelectionModifierBehavior, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "editor.rectSelectModifier",
|
||||||
|
"value": "{\"m_Value\":2}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.RectSelectMode, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "editor.dragSelectRectMode",
|
||||||
|
"value": "{\"m_Value\":0}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.SelectMode, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "editor.selectMode",
|
||||||
|
"value": "{\"m_Value\":1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.PivotLocation, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "mesh.newShapePivotLocation",
|
||||||
|
"value": "{\"m_Value\":1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.Rendering.ShadowCastingMode, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "mesh.shadowCastingMode",
|
||||||
|
"value": "{\"m_Value\":1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.Material, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "mesh.userMaterial",
|
||||||
|
"value": "{\"m_Value\":{\"instanceID\":0}}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEditor.StaticEditorFlags, UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "mesh.defaultStaticEditorFlags",
|
||||||
|
"value": "{\"m_Value\":0}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.ColliderType, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "mesh.newShapeColliderType",
|
||||||
|
"value": "{\"m_Value\":2}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UnityEngine.ProBuilder.UnwrapParameters, Unity.ProBuilder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
"key": "lightmapping.defaultLightmapUnwrapParameters",
|
||||||
|
"value": "{\"m_Value\":{\"m_HardAngle\":88.0,\"m_PackMargin\":20.0,\"m_AngleError\":8.0,\"m_AreaError\":15.0}}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
m_EditorVersion: 2020.3.19f1
|
m_EditorVersion: 2021.3.14f1
|
||||||
m_EditorVersionWithRevision: 2020.3.19f1 (68f137dc9bbe)
|
m_EditorVersionWithRevision: 2021.3.14f1 (eee1884e7226)
|
||||||
|
0
ProjectSettings/boot.config
Normal file
0
ProjectSettings/boot.config
Normal file
@ -15,6 +15,9 @@ EditorUserSettings:
|
|||||||
value: 224247031146467d1f0b09041c3a7c111b120a2b630c233d22662e30e7ee312badc333e4e8742a323016f6
|
value: 224247031146467d1f0b09041c3a7c111b120a2b630c233d22662e30e7ee312badc333e4e8742a323016f6
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedScenePath-3:
|
RecentlyUsedScenePath-3:
|
||||||
|
value: 224247031146467c1f0708201f3b1f2004180c25383136356d041c27e7f23d39eef479cde23730730910e0280b2a182ff74a240ae20e18021002ee4e35fa1d1c5fd016cc0ed1
|
||||||
|
flags: 0
|
||||||
|
RecentlyUsedScenePath-4:
|
||||||
value: 22424703114646680e0b0227036c761e3116152f623d28393930
|
value: 22424703114646680e0b0227036c761e3116152f623d28393930
|
||||||
flags: 0
|
flags: 0
|
||||||
vcSharedLogLevel:
|
vcSharedLogLevel:
|
||||||
|
1102
UserSettings/Layouts/default-2021.dwlt
Normal file
1102
UserSettings/Layouts/default-2021.dwlt
Normal file
File diff suppressed because it is too large
Load Diff
1
UserSettings/Search.settings
Normal file
1
UserSettings/Search.settings
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
Loading…
Reference in New Issue
Block a user