Skip to content

Commit

Permalink
turn enemy 2d
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-arndt committed Jan 3, 2023
1 parent 4e9a23f commit ae6fb64
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 1 deletion.
Binary file added Assets/2D/Sprites/npc_stationary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 122 additions & 0 deletions Assets/2D/Sprites/npc_stationary.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 119 additions & 0 deletions Assets/Prefabs/Character/Enemy.prefab
Original file line number Diff line number Diff line change
@@ -1,5 +1,102 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &965971010901631624
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7123186309266986121}
- component: {fileID: 8327374398466978749}
- component: {fileID: 1369798032503628408}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7123186309266986121
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 965971010901631624}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.6629, y: 1.6629, z: 1.6629}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2555234802472079653}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &8327374398466978749
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 965971010901631624}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 43d9dea87b6f9244dae280a1e394b985, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1.31, y: 1.27}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &1369798032503628408
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 965971010901631624}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 32c6a26b2a994044ab182fda4d83c6fe, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &2555234802472079649
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -32,8 +129,10 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 2.9, y: 6.44, z: 1.58}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1186171629575057601}
- {fileID: 7123186309266986121}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand All @@ -56,6 +155,7 @@ MeshRenderer:
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
Expand Down Expand Up @@ -94,8 +194,17 @@ CapsuleCollider:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2555234802472079649}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Height: 2
m_Direction: 1
Expand Down Expand Up @@ -153,12 +262,14 @@ MonoBehaviour:
m_EditorClassIdentifier:
statSystem: {fileID: 0}
skillSystem: {fileID: 0}
lifeTimeSystem: {fileID: 0}
faction: {fileID: 11400000, guid: c1722598940144f40a52192b2666d630, type: 2}
--- !u!1001 &1728425348964210474
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 2555234802472079653}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: c71e23441aa77dd4bbd5c43c63c30d4b,
Expand Down Expand Up @@ -241,7 +352,15 @@ PrefabInstance:
propertyPath: m_Name
value: dog
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: c71e23441aa77dd4bbd5c43c63c30d4b,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c71e23441aa77dd4bbd5c43c63c30d4b, type: 3}
--- !u!4 &1186171629575057601 stripped
Transform:
Expand Down
2 changes: 1 addition & 1 deletion Assets/Prefabs/World/HomeTown.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &612699189381228765
Transform:
m_ObjectHideFlags: 0
Expand Down

0 comments on commit ae6fb64

Please sign in to comment.