Compare commits

...

22 Commits

Author SHA1 Message Date
e3e1080c0c missed meta 2022-06-13 02:57:19 +03:00
7576d3eb23 Scene changes 2022-06-13 02:57:16 +03:00
02d37b591e edit character prefab 2022-06-13 02:57:10 +03:00
e43357ce93 disable obsolete code 2022-06-13 02:56:51 +03:00
0c4f91d58f change pivot in Ultraviolet ability 2022-06-13 02:56:39 +03:00
b463589b4e disable obsolete code 2022-06-13 02:56:28 +03:00
eeac6659f4 delete obsolete script 2022-06-13 02:56:18 +03:00
1f1f44e62c character update 2022-06-13 02:56:05 +03:00
ac697bf3fa new abilities 2022-06-13 02:55:52 +03:00
ed60411379 New abilities 2022-06-13 02:55:23 +03:00
ca1cd5f630 update gitignore 2022-06-03 12:33:12 +03:00
208ea051df update packages 2022-06-03 12:33:07 +03:00
3215bc78a0 update packages 2022-06-03 12:32:57 +03:00
41e18f4415 Update project settings 2022-06-03 12:32:01 +03:00
34042da5d1 missed metas 2022-06-03 12:29:23 +03:00
f273d8448c create new enemy class 2022-06-03 12:29:12 +03:00
ed02e7a974 Start refactoring of spawn generator 2022-06-03 12:29:00 +03:00
ad86ef1537 disable autobalance 2022-06-03 12:28:34 +03:00
8bc0696bd4 create balance scriptable object 2022-06-03 12:28:05 +03:00
20cf8c104f Create new level for tests 2022-06-03 12:27:41 +03:00
007a2d83bf small changes in character script 2022-06-03 12:27:11 +03:00
d0ba76ee39 delete obsolete scripts 2022-06-03 12:26:41 +03:00
88 changed files with 1794 additions and 1120 deletions

4
.gitignore vendored
View File

@ -83,3 +83,7 @@ obj
Logs Logs
/.gitignore~ /.gitignore~
/ldjam50/Logs/ApiUpdaterCheck.txt /ldjam50/Logs/ApiUpdaterCheck.txt
/logs
/ldjam50/UserSettings*
*.log
/ldjam50/UserSettings/EditorUserSettings.asset

View File

@ -0,0 +1,132 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2523660140771243756
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3423613101396630199}
- component: {fileID: 4810735146764604092}
m_Layer: 0
m_Name: Effect
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3423613101396630199
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2523660140771243756}
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: 4281435104574534168}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &4810735146764604092
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2523660140771243756}
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: -7223500524570698268, guid: d1724c2207cc7934580992ce9d42f6a7, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 0.5, y: 0.5}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &9166775571681944875
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4281435104574534168}
- component: {fileID: 7145043599925644736}
m_Layer: 0
m_Name: Boomerang
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4281435104574534168
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9166775571681944875}
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: 3423613101396630199}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7145043599925644736
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9166775571681944875}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ad610f07ccdc27cd5952628b5fee56eb, type: 3}
m_Name:
m_EditorClassIdentifier:
effect: {fileID: 2523660140771243756}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d5bc25014d7378953bd4154f297a4e01
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -11,8 +11,7 @@ GameObject:
- component: {fileID: 4291895258293432843} - component: {fileID: 4291895258293432843}
- component: {fileID: 4864008898460965936} - component: {fileID: 4864008898460965936}
- component: {fileID: 6102265118150421119} - component: {fileID: 6102265118150421119}
- component: {fileID: 463036853569761210} - component: {fileID: 2449486384176756105}
- component: {fileID: 4664501316419986786}
m_Layer: 0 m_Layer: 0
m_Name: Bullet m_Name: Bullet
m_TagString: Untagged m_TagString: Untagged
@ -28,8 +27,9 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992} m_GameObject: {fileID: 6196285449860538992}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.15, y: -0.48, z: 1.3160809} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 4220328572880531123} m_Father: {fileID: 4220328572880531123}
m_RootOrder: 0 m_RootOrder: 0
@ -45,6 +45,7 @@ SpriteRenderer:
m_CastShadows: 0 m_CastShadows: 0
m_ReceiveShadows: 0 m_ReceiveShadows: 0
m_DynamicOccludee: 1 m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1 m_MotionVectors: 1
m_LightProbeUsage: 1 m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
@ -111,40 +112,27 @@ BoxCollider2D:
serializedVersion: 2 serializedVersion: 2
m_Size: {x: 0.3, y: 0.3} m_Size: {x: 0.3, y: 0.3}
m_EdgeRadius: 0 m_EdgeRadius: 0
--- !u!95 &463036853569761210 --- !u!50 &2449486384176756105
Animator: Rigidbody2D:
serializedVersion: 3 serializedVersion: 4
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992} m_GameObject: {fileID: 6196285449860538992}
m_Enabled: 1 m_BodyType: 0
m_Avatar: {fileID: 0} m_Simulated: 1
m_Controller: {fileID: 9100000, guid: d4a2557aeec98284989b3daa00f15042, type: 2} m_UseFullKinematicContacts: 0
m_CullingMode: 0 m_UseAutoMass: 0
m_UpdateMode: 1 m_Mass: 0.0001
m_ApplyRootMotion: 0 m_LinearDrag: 0
m_LinearVelocityBlending: 0 m_AngularDrag: 0.05
m_WarningMessage: m_GravityScale: 0
m_HasTransformHierarchy: 1 m_Material: {fileID: 0}
m_AllowConstantClipSamplingOptimization: 1 m_Interpolate: 0
m_KeepAnimatorControllerStateOnDisable: 0 m_SleepingMode: 1
--- !u!114 &4664501316419986786 m_CollisionDetection: 0
MonoBehaviour: m_Constraints: 0
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ffa843d3684e77f44a8bdc2130bf7205, type: 3}
m_Name:
m_EditorClassIdentifier:
attackSpeed: 0
damage: 0
speed: 0
--- !u!1 &6863736067666425520 --- !u!1 &6863736067666425520
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -154,6 +142,7 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4220328572880531123} - component: {fileID: 4220328572880531123}
- component: {fileID: 1525017837818058799}
m_Layer: 0 m_Layer: 0
m_Name: Pistol m_Name: Pistol
m_TagString: Untagged m_TagString: Untagged
@ -169,10 +158,24 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6863736067666425520} m_GameObject: {fileID: 6863736067666425520}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.8834, y: 0.72714, z: -2.1158} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.6076, y: 1.6076, z: 1.6076} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 4291895258293432843} - {fileID: 4291895258293432843}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1525017837818058799
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6863736067666425520}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 48ea894e952344d99609759531dd0e12, type: 3}
m_Name:
m_EditorClassIdentifier:
bullet: {fileID: 6196285449860538992}

View File

@ -10,11 +10,8 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 4291895258293432843} - component: {fileID: 4291895258293432843}
- component: {fileID: 4864008898460965936} - component: {fileID: 4864008898460965936}
- component: {fileID: 6102265118150421119}
- component: {fileID: 3579090901325787678}
- component: {fileID: 463036853569761210}
m_Layer: 0 m_Layer: 0
m_Name: Square m_Name: Effect
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@ -27,9 +24,10 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992} m_GameObject: {fileID: 6196285449860538992}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 1.15, y: -0.48, z: 1.3160809} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 8.2, y: 0.36, z: 1} m_LocalScale: {x: 5.3329673, y: 0.36, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 4220328572880531123} m_Father: {fileID: 4220328572880531123}
m_RootOrder: 0 m_RootOrder: 0
@ -45,6 +43,7 @@ SpriteRenderer:
m_CastShadows: 0 m_CastShadows: 0
m_ReceiveShadows: 0 m_ReceiveShadows: 0
m_DynamicOccludee: 1 m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1 m_MotionVectors: 1
m_LightProbeUsage: 1 m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
@ -85,66 +84,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!61 &6102265118150421119
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0.00081826746, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 0.5, y: 0.5}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 0.5, y: 0.3}
m_EdgeRadius: 0
--- !u!114 &3579090901325787678
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 49f585561ea104de189705939209031c, type: 3}
m_Name:
m_EditorClassIdentifier:
beam: {fileID: 6196285449860538992}
rotationSpeed: 100
damage: 35
--- !u!95 &463036853569761210
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6196285449860538992}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: d4a2557aeec98284989b3daa00f15042, type: 2}
m_CullingMode: 0
m_UpdateMode: 1
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &6863736067666425520 --- !u!1 &6863736067666425520
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -154,6 +93,8 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4220328572880531123} - component: {fileID: 4220328572880531123}
- component: {fileID: 7877685981569377011}
- component: {fileID: 3519919980724110274}
m_Layer: 0 m_Layer: 0
m_Name: Ultraviolet m_Name: Ultraviolet
m_TagString: Untagged m_TagString: Untagged
@ -169,10 +110,57 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6863736067666425520} m_GameObject: {fileID: 6863736067666425520}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.8834, y: 0.72714, z: -2.1158} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.6076, y: 1.6076, z: 1.6076} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 4291895258293432843} - {fileID: 4291895258293432843}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7877685981569377011
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6863736067666425520}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 49f585561ea104de189705939209031c, type: 3}
m_Name:
m_EditorClassIdentifier:
abilityData:
baseDamage: 0
enhancedDamage: 0
rechargeTime: 0
damageSpeed: 0
effectPrefab: {fileID: 0}
effect: {fileID: 6196285449860538992}
rotationSpeed: 3.9
--- !u!61 &3519919980724110274
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6863736067666425520}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 1.3562081, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0.5}
oldSize: {x: 0.5, y: 0.5}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 2.7133794, y: 0.14908779}
m_EdgeRadius: 0

View File

@ -12,7 +12,7 @@ GameObject:
- component: {fileID: 5335952388035198178} - component: {fileID: 5335952388035198178}
- component: {fileID: 4955269028832526153} - component: {fileID: 4955269028832526153}
m_Layer: 0 m_Layer: 0
m_Name: Square m_Name: Spirte
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@ -28,6 +28,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 1137981222306597008} m_Father: {fileID: 1137981222306597008}
m_RootOrder: 0 m_RootOrder: 0
@ -43,6 +44,7 @@ SpriteRenderer:
m_CastShadows: 0 m_CastShadows: 0
m_ReceiveShadows: 0 m_ReceiveShadows: 0
m_DynamicOccludee: 1 m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1 m_MotionVectors: 1
m_LightProbeUsage: 1 m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
@ -72,7 +74,7 @@ SpriteRenderer:
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 32767 m_SortingOrder: 32767
m_Sprite: {fileID: 21300000, guid: 1ea3e1dc227afc0768a58ae84d17e6c5, type: 3} m_Sprite: {fileID: -1807468758588214948, guid: fc9a004f37844d541878fe6e00978d9e, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0
@ -85,7 +87,7 @@ SpriteRenderer:
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!95 &4955269028832526153 --- !u!95 &4955269028832526153
Animator: Animator:
serializedVersion: 3 serializedVersion: 4
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
@ -98,6 +100,7 @@ Animator:
m_UpdateMode: 0 m_UpdateMode: 0
m_ApplyRootMotion: 0 m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0 m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage: m_WarningMessage:
m_HasTransformHierarchy: 1 m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
@ -112,8 +115,8 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 1137981222306597008} - component: {fileID: 1137981222306597008}
- component: {fileID: 8044390793844211544} - component: {fileID: 8044390793844211544}
- component: {fileID: 4520856288189812233}
- component: {fileID: 3826968412464473223} - component: {fileID: 3826968412464473223}
- component: {fileID: 4699500568806196817}
m_Layer: 0 m_Layer: 0
m_Name: character m_Name: character
m_TagString: Character m_TagString: Character
@ -131,6 +134,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 8006084803627600395} - {fileID: 8006084803627600395}
m_Father: {fileID: 0} m_Father: {fileID: 0}
@ -162,24 +166,6 @@ BoxCollider2D:
serializedVersion: 2 serializedVersion: 2
m_Size: {x: 1.140003, y: 1.1275415} m_Size: {x: 1.140003, y: 1.1275415}
m_EdgeRadius: 0 m_EdgeRadius: 0
--- !u!114 &4520856288189812233
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8275013663521780488}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9ab5d980c53f9d7dc8d828fd5382febe, type: 3}
m_Name:
m_EditorClassIdentifier:
health: 250
damage: 10
moveSpeed: 0.02
characterSprite: {fileID: 1199223373439478175}
characterAnimator: {fileID: 0}
mainCamera: {fileID: 0}
--- !u!50 &3826968412464473223 --- !u!50 &3826968412464473223
Rigidbody2D: Rigidbody2D:
serializedVersion: 4 serializedVersion: 4
@ -201,3 +187,17 @@ Rigidbody2D:
m_SleepingMode: 1 m_SleepingMode: 1
m_CollisionDetection: 0 m_CollisionDetection: 0
m_Constraints: 0 m_Constraints: 0
--- !u!114 &4699500568806196817
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8275013663521780488}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 584da5b9caaf58e0da2ae26a4bbe9d02, type: 3}
m_Name:
m_EditorClassIdentifier:
characterData: {fileID: 11400000, guid: 4da5c8fa0351efd6c8284885156d13c6, type: 2}
characterSprite: {fileID: 1199223373439478175}

View File

@ -0,0 +1,512 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 3
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 0
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &54732621 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8275013663521780488, guid: d58051113365413fe9782fa6b28125fc, type: 3}
m_PrefabInstance: {fileID: 578983912}
m_PrefabAsset: {fileID: 0}
--- !u!4 &54732625 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
m_PrefabInstance: {fileID: 578983912}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &60829110
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 772746139284061349, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_Name
value: Tilemap_01
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalScale.x
value: 7.4060106
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalScale.y
value: 7.4060106
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalScale.z
value: 7.4060106
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalPosition.x
value: 2.29
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalPosition.y
value: 0.36
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 772746139284061350, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d184a3354ad54784ead4da1d908feaf2, type: 3}
--- !u!1001 &578983912
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1137981222306597008, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4520856288189812233, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: _gameplay
value:
objectReference: {fileID: 1058592762}
- target: {fileID: 4520856288189812233, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: mainCamera
value:
objectReference: {fileID: 1667579614}
- target: {fileID: 4699500568806196817, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: characterData
value:
objectReference: {fileID: 11400000, guid: 4da5c8fa0351efd6c8284885156d13c6, type: 2}
- target: {fileID: 8275013663521780488, guid: d58051113365413fe9782fa6b28125fc, type: 3}
propertyPath: m_Name
value: character
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d58051113365413fe9782fa6b28125fc, type: 3}
--- !u!1 &1058592761
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1058592763}
- component: {fileID: 1058592762}
m_Layer: 0
m_Name: Gameplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1058592762
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1058592761}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cc38bb79a5b3bcf1cbfe445f8947bc62, type: 3}
m_Name:
m_EditorClassIdentifier:
character: {fileID: 54732621}
overMind: {fileID: 1860491934}
timeOnStart: 500
DeathScreen: {fileID: 0}
balanceScale: 0
abilities: []
--- !u!4 &1058592763
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1058592761}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.5032258, y: 0.14848368, z: -0.02163601}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1667579614
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1667579617}
- component: {fileID: 1667579616}
- component: {fileID: 1667579615}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1667579615
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1667579614}
m_Enabled: 1
--- !u!20 &1667579616
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1667579614}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1667579617
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1667579614}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1860491934
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1860491936}
- component: {fileID: 1860491935}
m_Layer: 0
m_Name: OverMind
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1860491935
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1860491934}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a35c03cf584d904acac0d316af6a31fb, type: 3}
m_Name:
m_EditorClassIdentifier:
pullSize: 0
characterObject: {fileID: 54732621}
gamePlay: {fileID: 1058592762}
mobs: []
--- !u!4 &1860491936
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1860491934}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.5032258, y: 0.14848368, z: -0.02163601}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1160993074822090233
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 54732625}
m_Modifications:
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4281435104574534168, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9166775571681944875, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}
propertyPath: m_Name
value: Boomerang
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d5bc25014d7378953bd4154f297a4e01, type: 3}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1466d3faed09cf2bb8b167957401f1c1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,32 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ultraviolet : MonoBehaviour
{
[SerializeField] private GameObject beam;
[SerializeField] private float rotationSpeed;
[SerializeField] private float damage;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//beam.transform.rotation.eulerAngles += new Vector3(0, 0 0.2f);
transform.Rotate(new Vector3(0,0,1), rotationSpeed * Time.deltaTime);
}
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.CompareTag("Mob"))
{
col.gameObject.GetComponent<Mob>().SendMessage("ApplyDamage", damage);
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: d46e0d257615acb4a8de2b2dd1764662 guid: c2ad23c35a8dd4d81bdc41de9990c4cc
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -0,0 +1,34 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
public class BalanceScriptableObject : MonoBehaviour
{
[CreateAssetMenu(fileName = "Data", menuName = "Game Data/Enemies Balance", order = 1)]
public class SpawnManagerScriptableObject : ScriptableObject
{
public enum EnemyTypeEnum
{
Standart,
Heavy,
Light,
Group
}
[Serializable]
public struct EnemyRow
{
public EnemyTypeEnum enemyTypeEnum;
public int count;
public int health;
public int damage;
public float speed;
public float upgradePoints;
public float floatTimeAfterDeath;
}
[SerializeField] public List<EnemyRow> enemiesList;
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 743956073ee5c1f4a964111017dcc3dc guid: 43de2f99e8d8aee00b99f37effd52dbd
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,50 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 0}
m_Name: EnemiesBalance
m_EditorClassIdentifier: Assembly-CSharp::BalanceScriptableObject/SpawnManagerScriptableObject
enemiesList:
- enemyTypeEnum: 0
count: 1
health: 100
damage: 10
speed: 2
upgradePoints: 1
floatTimeAfterDeath: 0.005
- enemyTypeEnum: 1
count: 1
health: 200
damage: 20
speed: 1.5
upgradePoints: 2
floatTimeAfterDeath: 0.01
- enemyTypeEnum: 2
count: 1
health: 50
damage: 5
speed: 2.5
upgradePoints: 2
floatTimeAfterDeath: 0.01
- enemyTypeEnum: 3
count: 4
health: 0
damage: 0
speed: 0
upgradePoints: 0
floatTimeAfterDeath: 0
- enemyTypeEnum: 0
count: 4
health: 625
damage: 625
speed: 1.88
upgradePoints: 0.5
floatTimeAfterDeath: 0.0025

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 145dbaa0f1d2a2ff797b13ec2fdc78bf
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,124 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor.Animations;
using UnityEngine;
using UnityEngine.UI;
public class Character : MonoBehaviour
{
[SerializeField] private Gameplay _gameplay;
[SerializeField] private float health;
[SerializeField] private float damage;
[SerializeField] private float moveSpeed;
[SerializeField] private GameObject characterSprite;
[SerializeField] private Animator characterAnimator;
[SerializeField] private GameObject mainCamera;
[SerializeField] private GameObject iconFull;
[SerializeField] private GameObject iconHalf;
[SerializeField] private GameObject iconDeath;
[SerializeField] private GameObject HealthBar;
private float horInpt;
private float verInpt;
public struct StatReturn
{
public float Health;
public float Damage;
public float MoveSpeed;
}
private void Start()
{
characterAnimator = characterSprite.GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
if (health > 240)
{
iconFull.SetActive(true);
iconHalf.SetActive(false);
iconDeath.SetActive(false);
}
if (health < 125 && health > 15)
{
iconFull.SetActive(false);
iconHalf.SetActive(true);
iconDeath.SetActive(false);
}
if (health < 15)
{
iconFull.SetActive(false);
iconHalf.SetActive(true);
iconDeath.SetActive(false);
}
print(_gameplay.GetProcentsXP());
// HealthBar.GetComponent<Image>().fillAmount = _gameplay.GetProcentsXP();
horInpt = Input.GetAxis("Horizontal");
verInpt = Input.GetAxis("Vertical");
if (moveSpeed > horInpt || horInpt > moveSpeed)
{
characterAnimator.SetBool("IsRun", true);
transform.position += new Vector3(horInpt * moveSpeed,0,0);
if (horInpt > 0)
{
characterSprite.transform.localScale = new Vector3(1, 1, 1);
}
if (horInpt < 0)
{
characterSprite.transform.localScale = new Vector3(-1, 1, 1);
}
}
else
{
characterAnimator.SetBool("IsRun", false);
}
if (-0.1f > verInpt || verInpt > 0.1f)
{
characterAnimator.SetBool("IsRun", true);
transform.position += new Vector3(0,verInpt * moveSpeed,0);
}
MoveCamera();
}
private void MoveCamera()
{
mainCamera.transform.position = new Vector3(transform.position.x, transform.position.y,-10);
}
public StatReturn GetStats()
{
var stats = new StatReturn
{
Health = health,
Damage = damage,
MoveSpeed = moveSpeed
};
return stats;
}
public void ApplyDamage(float damage)
{
health -= damage;
}
public float GetHealth()
{
return health;
}
public float GetDamage()
{
return damage;
}
public void SetHealth(float newHealth)
{
health = newHealth;
}
public void SetDamage(float newDamage)
{
damage = newDamage;
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2404d8b5a589d3078ac5c4223e0b3ec0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,80 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 0}
m_Name: AbilitiesData
m_EditorClassIdentifier: Assembly-CSharp::AbilitiesData
ultraviolet:
baseDamage: 75
enhancedDamage: 150
rechargeTime: 1
damageSpeed: 2
effectPrefab: {fileID: 0}
pistols:
baseDamage: 50
enhancedDamage: 100
rechargeTime: 1.5
damageSpeed: 1.75
effectPrefab: {fileID: 0}
boomerang:
baseDamage: 25
enhancedDamage: 50
rechargeTime: 2
damageSpeed: 2.5
effectPrefab: {fileID: 0}
flamethrower:
baseDamage: 100
enhancedDamage: 200
rechargeTime: 1
damageSpeed: 2
effectPrefab: {fileID: 0}
radio:
baseDamage: 50
enhancedDamage: 75
rechargeTime: 1
damageSpeed: 2.5
effectPrefab: {fileID: 0}
robot:
baseDamage: 75
enhancedDamage: 150
rechargeTime: 3
damageSpeed: 3
effectPrefab: {fileID: 0}
shotgun:
baseDamage: 100
enhancedDamage: 200
rechargeTime: 2
damageSpeed: 0
effectPrefab: {fileID: 0}
artillery:
baseDamage: 0
enhancedDamage: 0
rechargeTime: 15
damageSpeed: 0
effectPrefab: {fileID: 0}
veryHotSuit:
baseDamage: 0
enhancedDamage: 0
rechargeTime: 0
damageSpeed: 0
effectPrefab: {fileID: 0}
iceRifle:
baseDamage: 10
enhancedDamage: 50
rechargeTime: 2
damageSpeed: 0
effectPrefab: {fileID: 0}
miniRockets:
baseDamage: 50
enhancedDamage: 175
rechargeTime: 1.5
damageSpeed: 0.5
effectPrefab: {fileID: 0}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2f9708f6985662f3d9fd93ddec0ad1a0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
public class Ability : MonoBehaviour public abstract class Ability : MonoBehaviour
{ {
} }

View File

@ -0,0 +1,45 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public struct AbilityData
{
public float baseDamage;
public float enhancedDamage;
public float rechargeTime;
public float damageSpeed;
public GameObject effectPrefab;
}
[CreateAssetMenu(fileName = "AbilitiesData", menuName = "Game Data/Abilities")]
public class AbilitiesData : ScriptableObject
{
public AbilityData ultraviolet;
public AbilityData pistols;
public AbilityData boomerang;
public AbilityData flamethrower;
public AbilityData radio;
public AbilityData robot;
public AbilityData shotgun;
public AbilityData artillery;
public AbilityData veryHotSuit;
public AbilityData iceRifle;
public AbilityData miniRockets;
}
/*
enum Abilities
{
Ultraviolet,
Pistols,
Boomerang,
Flamethrower,
Radio,
Robot,
Shotgun,
Artillery,
VeryHotSuit,
IceRifle,
MiniRockets
} */

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 33f81286f0d29bc49985b946e8e4fccd guid: 41acf791a24f6194cb0018b179a37351
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Boomerang : Ability
{
[SerializeField]
private GameObject effect;
[SerializeField]
private float circleSpeed = 1f;
[SerializeField]
private float forwardSpeed = -1f;
[SerializeField] // Assuming negative Z is towards the camera
private float circleSize = 0.1f;
[SerializeField]
private float circleGrowSpeed = 0.01f;
private void Update()
{
var xPos = Mathf.Sin(Time.time * circleSpeed) * circleSize;
var yPos = Mathf.Cos(Time.time * circleSpeed) * circleSize;
//var zPos += forwardSpeed * Time.deltaTime;
circleSize += circleGrowSpeed;
effect.transform.position = new Vector3(xPos, yPos, 0);
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: b2aff903c5b48cc4ab9582ecc9e369c3 guid: ad610f07ccdc27cd5952628b5fee56eb
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,53 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pistols : Ability
{
[SerializeField] private readonly AbilityData abilityData;
[SerializeField] private GameObject bullet;
private void Start()
{
StartCoroutine(ShotBullet());
}
private IEnumerator ShotBullet()
{
var sideNumb = 0;
var shotVector = new Vector2();
while(true)
{
yield return new WaitForSeconds(.5f);
var newBullet = Instantiate(bullet);
newBullet.SetActive(true);
newBullet.transform.position = this.transform.position;
shotVector = sideNumb switch
{
0 => new Vector2(0, 1),
1 => new Vector2(1, 1),
2 => new Vector2(1, 0),
3 => new Vector2(1, -1),
4 => new Vector2(0, -1),
5 => new Vector2(-1, -1),
6 => new Vector2(-1, 0),
7 => new Vector2(-1, 1),
_ => shotVector
};
shotVector = shotVector / 50;
newBullet.GetComponent<Rigidbody2D>().AddForce(shotVector);
if (sideNumb >= 7)
{
sideNumb = 0;
}
else
{
sideNumb++;
}
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 48ea894e952344d99609759531dd0e12
timeCreated: 1655073292

View File

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
public class Pistol: MonoBehaviour public class Pistols_obsolete: Ability
{ {
[SerializeField] private GameObject bullet; [SerializeField] private GameObject bullet;

View File

@ -0,0 +1,26 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ultraviolet : Ability
{
[SerializeField] private readonly AbilityData abilityData;
[SerializeField] private GameObject effect;
[Range(0,200)]
[SerializeField] private float rotationSpeed;
private void Update()
{
effect.transform.Rotate(new Vector3(0,0,1) * Time.deltaTime * rotationSpeed);
}
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.CompareTag("Mob"))
{
//col.gameObject.GetComponent<Mob>().SendMessage("ApplyDamage", damage);
}
}
}

View File

@ -0,0 +1,29 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Character : MonoBehaviour
{
[SerializeField] private CharacterData characterData;
private Rigidbody2D rigidBody;
[SerializeField] private GameObject characterSprite;
private Animator animator;
private static readonly int IsRun = Animator.StringToHash("IsRun");
public void Start()
{
rigidBody = GetComponent<Rigidbody2D>();
animator = characterSprite.GetComponent<Animator>();
}
public void Update()
{
var horInput = Input.GetAxis("Horizontal");
var verInput = Input.GetAxis("Vertical");
rigidBody.velocity = new Vector2(horInput , verInput) * characterData.moveSpeedMultiplier;
characterSprite.transform.localScale = new Vector3(horInput > 0 ? 1 : -1, 1, 1);
animator.SetBool(IsRun, Mathf.Abs(horInput) > 0 || Mathf.Abs(verInput) > 0);
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 9ab5d980c53f9d7dc8d828fd5382febe guid: 584da5b9caaf58e0da2ae26a4bbe9d02
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 65ab2b639f4ff314a962ad5a94ab058a, type: 3}
m_Name: CharacterData
m_EditorClassIdentifier:
shootableObject: {fileID: 0}
staticShootable: {fileID: 0}
meleeWeapon: {fileID: 0}
moveSpeedMultiplier: 2
crouchSpeed: 50
crouchColliderHeight: 1
normalColliderHeight: 2
rotationSpeed: 60
crouchRotationSpeed: 30
jumpForce: 10
diveForce: 30
bulletInitialSpeed: 10
diveCooldownTimer: 0.25

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4da5c8fa0351efd6c8284885156d13c6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -29,6 +29,7 @@
*/ */
using UnityEngine; using UnityEngine;
using UnityEngine.Serialization;
[CreateAssetMenu(fileName = "CharacterData", menuName = "Game Data/Character Data")] [CreateAssetMenu(fileName = "CharacterData", menuName = "Game Data/Character Data")]
public class CharacterData : ScriptableObject public class CharacterData : ScriptableObject
@ -36,7 +37,8 @@ public class CharacterData : ScriptableObject
public GameObject shootableObject; public GameObject shootableObject;
public GameObject staticShootable; public GameObject staticShootable;
public GameObject meleeWeapon; public GameObject meleeWeapon;
public float movementSpeed = 150f; [Range(1f,5f)]
public float moveSpeedMultiplier = 1f;
public float crouchSpeed = 50f; public float crouchSpeed = 50f;
public float crouchColliderHeight = 1f; public float crouchColliderHeight = 1f;
public float normalColliderHeight = 2f; public float normalColliderHeight = 2f;

View File

@ -1,248 +1,104 @@
/* using System;
* Copyright (c) 2019 Razeware LLC using System.Collections;
* using System.Collections.Generic;
* Permission is hereby granted, free of charge, to any person obtaining a copy using UnityEditor.Animations;
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using UnityEngine; using UnityEngine;
using UnityEngine.UI;
namespace RayWenderlich.Unity.StatePatternInUnity public class Character_obsolete : MonoBehaviour
{ {
//[SerializeField] private Gameplay _gameplay;
[SerializeField] private float health;
[SerializeField] private float damage;
[SerializeField] private float moveSpeed;
[SerializeField] private GameObject characterSprite;
[SerializeField] private Animator characterAnimator;
[SerializeField] private GameObject mainCamera;
[SerializeField] private GameObject iconFull;
[SerializeField] private GameObject iconHalf;
[SerializeField] private GameObject iconDeath;
[RequireComponent(typeof(BoxCollider2D))]
public class Character : MonoBehaviour [SerializeField] private GameObject HealthBar;
private float horInput;
private float verInput;
public struct StatReturn
{ {
#region Variables public float Health;
public float Damage;
public StateMachine movementSM; public float MoveSpeed;
public StandingState standing;
public DuckingState ducking;
public JumpingState jumping;
#pragma warning disable 0649
[SerializeField]
private Transform handTransform;
[SerializeField]
private Transform sheathTransform;
[SerializeField]
private Transform shootTransform;
[SerializeField]
private CharacterData data;
[SerializeField]
private LayerMask whatIsGround;
[SerializeField]
private Collider hitBox;
[SerializeField]
private Animator anim;
[SerializeField]
private ParticleSystem shockWave;
#pragma warning restore 0649
[SerializeField]
private float meleeRestThreshold = 10f;
[SerializeField]
private float diveThreshold = 1f;
[SerializeField]
private float collisionOverlapRadius = 0.1f;
private GameObject currentWeapon;
private Quaternion currentRotation;
private int horizonalMoveParam = Animator.StringToHash("H_Speed");
private int verticalMoveParam = Animator.StringToHash("V_Speed");
private int shootParam = Animator.StringToHash("Shoot");
private int hardLanding = Animator.StringToHash("HardLand");
#endregion
#region Properties
public float NormalColliderHeight => data.normalColliderHeight;
public float CrouchColliderHeight => data.crouchColliderHeight;
public float DiveForce => data.diveForce;
public float JumpForce => data.jumpForce;
public float MovementSpeed => data.movementSpeed;
public float CrouchSpeed => data.crouchSpeed;
public float RotationSpeed => data.rotationSpeed;
public float CrouchRotationSpeed => data.crouchRotationSpeed;
public GameObject MeleeWeapon => data.meleeWeapon;
public GameObject ShootableWeapon => data.staticShootable;
public float DiveCooldownTimer => data.diveCooldownTimer;
public float CollisionOverlapRadius => collisionOverlapRadius;
public float DiveThreshold => diveThreshold;
public float MeleeRestThreshold => meleeRestThreshold;
public int isMelee => Animator.StringToHash("IsMelee");
public int crouchParam => Animator.StringToHash("Crouch");
public float ColliderSize
{
get => GetComponent<CapsuleCollider>().height;
set
{
GetComponent<CapsuleCollider>().height = value;
Vector3 center = GetComponent<CapsuleCollider>().center;
center.y = value / 2f;
GetComponent<CapsuleCollider>().center = center;
}
}
#endregion
#region Methods
public void Move(float speed, float rotationSpeed)
{/*
Vector3 targetVelocity = speed * transform.forward * Time.deltaTime;
targetVelocity.y = GetComponent<Rigidbody>().velocity.y;
GetComponent<Rigidbody>().velocity = targetVelocity;
GetComponent<Rigidbody>().angularVelocity = rotationSpeed * Vector3.up * Time.deltaTime;
if (targetVelocity.magnitude > 0.01f || GetComponent<Rigidbody>().angularVelocity.magnitude > 0.01f)
{
SoundManager.Instance.PlayFootSteps(Mathf.Abs(speed));
}
anim.SetFloat(horizonalMoveParam, GetComponent<Rigidbody>().angularVelocity.y);
anim.SetFloat(verticalMoveParam, speed * Time.deltaTime);*/
print(Input.GetAxis("Horizontal"));
print(Input.GetAxis("Vertical"));
}
public void ResetMoveParams()
{
GetComponent<Rigidbody>().angularVelocity = Vector3.zero;
anim.SetFloat(horizonalMoveParam, 0f);
anim.SetFloat(verticalMoveParam, 0f);
}
public void ApplyImpulse(Vector3 force)
{
GetComponent<Rigidbody>().AddForce(force, ForceMode.Impulse);
}
public void SetAnimationBool(int param, bool value)
{
anim.SetBool(param, value);
}
public void TriggerAnimation(int param)
{
anim.SetTrigger(param);
}
public void Shoot()
{
TriggerAnimation(shootParam);
GameObject shootable = Instantiate(data.shootableObject, shootTransform.position, shootTransform.rotation);
shootable.GetComponent<Rigidbody>().velocity = shootable.transform.forward * data.bulletInitialSpeed;
SoundManager.Instance.PlaySound(SoundManager.Instance.shoot, true);
}
public bool CheckCollisionOverlap(Vector3 point)
{
return Physics.OverlapSphere(point, CollisionOverlapRadius, whatIsGround).Length > 0;
}
public void Equip(GameObject weapon = null)
{
if (weapon != null)
{
currentWeapon = Instantiate(weapon, handTransform.position, handTransform.rotation, handTransform);
}
else
{
ParentCurrentWeapon(handTransform);
}
}
public void DiveBomb()
{
TriggerAnimation(hardLanding);
SoundManager.Instance.PlaySound(SoundManager.Instance.hardLanding);
shockWave.Play();
}
public void SheathWeapon()
{
ParentCurrentWeapon(sheathTransform);
}
public void Unequip()
{
Destroy(currentWeapon);
}
public void ActivateHitBox()
{
hitBox.enabled = true;
}
public void DeactivateHitBox()
{
hitBox.enabled = false;
}
private void ParentCurrentWeapon(Transform parent)
{
if (currentWeapon.transform.parent == parent)
{
return;
}
currentWeapon.transform.SetParent(parent);
currentWeapon.transform.localPosition = Vector3.zero;
currentWeapon.transform.localRotation = Quaternion.identity;
}
#endregion
#region MonoBehaviour Callbacks
private void Start()
{
movementSM = new StateMachine();
standing = new StandingState(this, movementSM);
ducking = new DuckingState(this, movementSM);
jumping = new JumpingState(this, movementSM);
movementSM.Initialize(standing);
}
private void Update()
{
movementSM.CurrentState.HandleInput();
movementSM.CurrentState.LogicUpdate();
}
private void FixedUpdate()
{
movementSM.CurrentState.PhysicsUpdate();
}
#endregion
} }
private void Start()
{
characterAnimator = characterSprite.GetComponent<Animator>();
}
// Update is called once per frame
private void Update()
{
horInput = Input.GetAxis("Horizontal");
verInput = Input.GetAxis("Vertical");
if (moveSpeed > horInput || horInput > moveSpeed)
{
characterAnimator.SetBool("IsRun", true);
transform.position += new Vector3(horInput * moveSpeed,0,0);
if (horInput > 0)
{
characterSprite.transform.localScale = new Vector3(1, 1, 1);
}
if (horInput < 0)
{
characterSprite.transform.localScale = new Vector3(-1, 1, 1);
}
}
else
{
characterAnimator.SetBool("IsRun", false);
}
if (-0.1f > verInput || verInput > 0.1f)
{
characterAnimator.SetBool("IsRun", true);
transform.position += new Vector3(0,verInput * moveSpeed,0);
}
MoveCamera();
}
private void MoveCamera()
{
mainCamera.transform.position = new Vector3(transform.position.x, transform.position.y,-10);
}
public StatReturn GetStats()
{
var stats = new StatReturn
{
Health = health,
Damage = damage,
MoveSpeed = moveSpeed
};
return stats;
}
public void ApplyDamage(float damage)
{
health -= damage;
}
/*
public float GetHealth()
{
return health;
}
public float GetDamage()
{
return damage;
}
public void SetHealth(float newHealth)
{
health = newHealth;
}
public void SetDamage(float newDamage)
{
damage = newDamage;
}*/
} }

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 1806a6cdb08623a428a4c40597e024b6 guid: 9ab5d980c53f9d7dc8d828fd5382febe
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -25,12 +25,12 @@ void Start()
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
var characterStats = character.GetStats(); //var characterStats = character.GetStats();
horInpText.text = "horizontal input = " + Input.GetAxis("Horizontal"); horInpText.text = "horizontal input = " + Input.GetAxis("Horizontal");
verInpText.text = "vertical input = " + Input.GetAxis("Vertical"); verInpText.text = "vertical input = " + Input.GetAxis("Vertical");
characterHealthText.text = "health = " + characterStats.Health; //characterHealthText.text = "health = " + characterStats.Health;
characterDamageText.text = "damage = " + characterStats.Damage; //characterDamageText.text = "damage = " + characterStats.Damage;
timerText.text = "timer = " + gameplay.GetTimer(); timerText.text = "timer = " + gameplay.GetTimer();

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9e81f19d421a03bcb8c6cb48e91d8efd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using UnityEngine;
using static BalanceScriptableObject.SpawnManagerScriptableObject;
namespace Enemies
{
public abstract class BaseEnemy : MonoBehaviour
{
public abstract void SetEnemyData(EnemyRow value);
}
public class Enemy : BaseEnemy
{
private EnemyRow enemyData;
public override void SetEnemyData(EnemyRow value)
{
enemyData = value;
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 3386c88cab45c734ea00751e5eb343e1 guid: 5efd4ab8f726d4a9591d78c8d23c9c97
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -31,7 +31,7 @@ void Start()
_curGameState = GameStates.Game; _curGameState = GameStates.Game;
_time = timeOnStart; _time = timeOnStart;
_characterCharacterClass = character.GetComponent<Character>(); _characterCharacterClass = character.GetComponent<Character>();
StartCoroutine(AutoBalance()); //StartCoroutine(AutoBalance());
characterNegativeXPToNewLVL = 2; characterNegativeXPToNewLVL = 2;
characterNegativeXPToNewLVLStatic = 2; characterNegativeXPToNewLVLStatic = 2;
} }
@ -56,7 +56,7 @@ private IEnumerator AutoBalance()
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (_time < 0 || _characterCharacterClass.GetHealth() <= 0) /*if (_time < 0 || _characterCharacterClass.GetHealth() <= 0)
{ {
_curGameState = GameStates.GameOver; _curGameState = GameStates.GameOver;
} }
@ -70,7 +70,7 @@ void Update()
overMind.SetActive(false); overMind.SetActive(false);
DeathScreen.SetActive(true); DeathScreen.SetActive(true);
} }*/
} }
public float GetTimer() public float GetTimer()

View File

@ -62,7 +62,7 @@ private void Awake()
} }
} }
public void Display(State enteredState, Alignment alignment) /*public void Display(State enteredState, Alignment alignment)
{ {
var name = enteredState.ToString(); var name = enteredState.ToString();
name = name.Remove(name.IndexOf(textToTrim), textToTrim.Length); name = name.Remove(name.IndexOf(textToTrim), textToTrim.Length);
@ -76,6 +76,6 @@ public void Display(State enteredState, Alignment alignment)
{ {
rightText.text = name; rightText.text = name;
} }
} }*/
} }
} }

View File

@ -10,7 +10,7 @@ public class OverMind : MonoBehaviour
[SerializeField] private Gameplay gamePlay; [SerializeField] private Gameplay gamePlay;
// [SerializeField] private GameObject mobPull; // [SerializeField] private GameObject mobPull;
[SerializeField] private GameObject activeMobs;
private float balanceScale = 1f; private float balanceScale = 1f;
private List<GameObject> _pullEnemies; private List<GameObject> _pullEnemies;
@ -41,6 +41,9 @@ public struct MobParameters
} }
[SerializeField] private List<MobParameters> mobs; [SerializeField] private List<MobParameters> mobs;
private GameObject mobsObject;
private GameObject activeMobs;
// [SerializeField] private MobParameters standartMob; // [SerializeField] private MobParameters standartMob;
// [SerializeField] private MobParameters lightMob; // [SerializeField] private MobParameters lightMob;
// [SerializeField] private MobParameters heavyMob; // [SerializeField] private MobParameters heavyMob;
@ -52,10 +55,15 @@ void Start()
print(GenerateSpawnRegions().TopRegion); print(GenerateSpawnRegions().TopRegion);
generatedSpawnRegions = GenerateSpawnRegions(); generatedSpawnRegions = GenerateSpawnRegions();
mobsObject = Instantiate(new GameObject());
mobsObject.name = "Mobs";
mobsObject.transform.parent = transform;
//activeMobs = new GameObject
} }
public SpawnRegions GenerateSpawnRegions()
private static SpawnRegions GenerateSpawnRegions()
{ {
const float spawnBorder = 2f; const float spawnBorder = 2f;
var stageDimensions = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height,0)); var stageDimensions = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height,0));
@ -122,7 +130,7 @@ private Vector4 PickRandomSpawnBorder()
// } // }
// } // }
Vector3 GenerateRandomSpawnMobPoint() private Vector3 GenerateRandomSpawnMobPoint()
{ {
var _randomSpawnRegion = PickRandomSpawnBorder(); var _randomSpawnRegion = PickRandomSpawnBorder();
var spawnPoint = new Vector3( var spawnPoint = new Vector3(

View File

@ -1,74 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace RayWenderlich.Unity.StatePatternInUnity
{
public abstract class State
{
protected Character character;
protected StateMachine stateMachine;
protected State(Character character, StateMachine stateMachine)
{
this.character = character;
this.stateMachine = stateMachine;
}
public virtual void Enter()
{
DisplayOnUI(UIManager.Alignment.Left);
}
public virtual void HandleInput()
{
}
public virtual void LogicUpdate()
{
}
public virtual void PhysicsUpdate()
{
}
public virtual void Exit()
{
}
protected void DisplayOnUI(UIManager.Alignment alignment)
{
UIManager.Instance.Display(this, alignment);
}
}
}

View File

@ -1,51 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace RayWenderlich.Unity.StatePatternInUnity
{
public class StateMachine
{
public State CurrentState { get; private set; }
public void Initialize(State startingState)
{
CurrentState = startingState;
startingState.Enter();
}
public void ChangeState(State newState)
{
CurrentState.Exit();
CurrentState = newState;
newState.Enter();
}
}
}

View File

@ -1,83 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using UnityEngine;
namespace RayWenderlich.Unity.StatePatternInUnity
{
public class DuckingState : GroundedState
{
private bool belowCeiling;
private bool crouchHeld;
public DuckingState(Character character, StateMachine stateMachine) : base(character, stateMachine)
{
}
public override void Enter()
{
base.Enter();
character.SetAnimationBool(character.crouchParam, true);
speed = character.CrouchSpeed;
rotationSpeed = character.CrouchRotationSpeed;
character.ColliderSize = character.CrouchColliderHeight;
belowCeiling = false;
}
public override void Exit()
{
base.Exit();
character.SetAnimationBool(character.crouchParam, false);
character.ColliderSize = character.NormalColliderHeight;
}
public override void HandleInput()
{
base.HandleInput();
crouchHeld = Input.GetButton("Fire3");
}
public override void LogicUpdate()
{
base.LogicUpdate();
if (!(crouchHeld || belowCeiling))
{
stateMachine.ChangeState(character.standing);
}
}
public override void PhysicsUpdate()
{
base.PhysicsUpdate();
belowCeiling = character.CheckCollisionOverlap(character.transform.position +
Vector3.up * character.NormalColliderHeight);
}
}
}

View File

@ -1,72 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using UnityEngine;
namespace RayWenderlich.Unity.StatePatternInUnity
{
public class GroundedState : State
{
protected float speed;
protected float rotationSpeed;
private float horizontalInput;
private float verticalInput;
public GroundedState(Character character, StateMachine stateMachine) : base(character, stateMachine)
{
}
public override void Enter()
{
base.Enter();
horizontalInput = verticalInput = 0.0f;
}
public override void Exit()
{
base.Exit();
character.ResetMoveParams();
}
public override void HandleInput()
{
base.HandleInput();
verticalInput = Input.GetAxis("Vertical");
horizontalInput = Input.GetAxis("Horizontal");
}
public override void PhysicsUpdate()
{
base.PhysicsUpdate();
character.Move(verticalInput * speed, horizontalInput * rotationSpeed);
}
}
}

View File

@ -1,77 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using UnityEngine;
namespace RayWenderlich.Unity.StatePatternInUnity
{
public class JumpingState : State
{
private bool grounded;
private int jumpParam = Animator.StringToHash("Jump");
private int landParam = Animator.StringToHash("Land");
public JumpingState(Character character, StateMachine stateMachine) : base(character, stateMachine)
{
}
public override void Enter()
{
base.Enter();
SoundManager.Instance.PlaySound(SoundManager.Instance.jumpSounds);
grounded = false;
Jump();
}
public override void LogicUpdate()
{
base.LogicUpdate();
if (grounded)
{
character.TriggerAnimation(landParam);
SoundManager.Instance.PlaySound(SoundManager.Instance.landing);
stateMachine.ChangeState(character.standing);
}
}
public override void PhysicsUpdate()
{
base.PhysicsUpdate();
grounded = character.CheckCollisionOverlap(character.transform.position);
}
private void Jump()
{
character.transform.Translate(Vector3.up * (character.CollisionOverlapRadius + 0.1f));
character.ApplyImpulse(Vector3.up * character.JumpForce);
character.TriggerAnimation(jumpParam);
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 6656e8a8e13da214da9fccdf8220a037
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,73 +0,0 @@
/*
* Copyright (c) 2019 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using UnityEngine;
namespace RayWenderlich.Unity.StatePatternInUnity
{
public class StandingState : GroundedState
{
private bool jump;
private bool crouch;
public StandingState(Character character, StateMachine stateMachine) : base(character, stateMachine)
{
}
public override void Enter()
{
base.Enter();
speed = character.MovementSpeed;
rotationSpeed = character.RotationSpeed;
crouch = false;
jump = false;
}
public override void HandleInput()
{
base.HandleInput();
crouch = Input.GetButtonDown("Fire3");
jump = Input.GetButtonDown("Jump");
}
public override void LogicUpdate()
{
base.LogicUpdate();
if (crouch)
{
stateMachine.ChangeState(character.ducking);
}
else if (jump)
{
stateMachine.ChangeState(character.jumping);
}
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 9289964b69be1d94b9e7a72bc9cf4a8b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -42,6 +42,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -244,6 +245,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
BossSLime-Sheet_0: 2244105368771335858
BossSLime-Sheet_1: -6178049899826766673
BossSLime-Sheet_4: 322348040323362661
BossSLime-Sheet_5: -7999082401274269067
BossSLime-Sheet_3: -2960172521263150815
BossSLime-Sheet_2: 2780171311199269278
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
BossShroolder-Sheet_6: -1046419000732479770
BossShroolder-Sheet_2: -8331126229531950116
BossShroolder-Sheet_0: 2961329756998060182
BossShroolder-Sheet_5: -578039315847237803
BossShroolder-Sheet_1: -6282326837379962671
BossShroolder-Sheet_7: 3440945694892755173
BossShroolder-Sheet_3: 4919586636285625377
BossShroolder-Sheet_4: 4886104921339420682
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
BossShruner-Sheet_4: 3540418157204534381
BossShruner-Sheet_2: -1931385951837208587
BossShruner-Sheet_7: 5798827823292422518
BossShruner-Sheet_1: 5456488274361416681
BossShruner-Sheet_0: -8129587171578952369
BossShruner-Sheet_3: 8226744794059525854
BossShruner-Sheet_6: 781807465550901527
BossShruner-Sheet_5: -8448095662877769638
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
BossShroom1-Sheet_3: -6736534473010391469
BossShroom1-Sheet_6: 4299732811064663078
BossShroom1-Sheet_5: -3582962525681649468
BossShroom1-Sheet_2: 3645689210918985698
BossShroom1-Sheet_0: 6843756305149519188
BossShroom1-Sheet_1: 2300099083444590717
BossShroom1-Sheet_7: 421302558740379040
BossShroom1-Sheet_4: -8117332548661113499
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -42,6 +42,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -244,6 +245,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
HeroIdle-Sheet_5: -5332755284735770466
HeroIdle-Sheet_3: -462364649685249861
HeroIdle-Sheet_0: -1807468758588214948
HeroIdle-Sheet_1: -5636805903851064224
HeroIdle-Sheet_4: -8216647635674845090
HeroIdle-Sheet_2: 346304155453734737
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
HeroRun-Sheet_6: 2107433104725103169
HeroRun-Sheet_0: -3908570954395783668
HeroRun-Sheet_5: 1144915135187328517
HeroRun-Sheet_7: -7056562468747527946
HeroRun-Sheet_2: 3935099282280036558
HeroRun-Sheet_4: 7639092083384628833
HeroRun-Sheet_1: -8409440076043084856
HeroRun-Sheet_3: 5762779979397876585
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -30,6 +30,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -148,6 +149,9 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
BlueLine-Sheet_1: -7831493266679632330
BlueLine-Sheet_0: 773008359681470704
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -36,6 +36,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -196,6 +197,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Bumerang-Sheet_3: -770679914804863826
Bumerang-Sheet_1: -4709584402529465430
Bumerang-Sheet_2: -3016177546571357208
Bumerang-Sheet_0: -7223500524570698268
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Expl32_5: 7781227294636230676
Expl32_3: 5140774079673320405
Expl32_0: 4455830272222587326
Expl32_2: -5608497299007999723
Expl32_4: -7448463022687376513
Expl32_7: 5139373333517102986
Expl32_1: 8855754954285246910
Expl32_6: -5688838636644343198
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Expl32Blue-Green_4: -3657303100061804433
Expl32Blue-Green_0: -1828542687537101492
Expl32Blue-Green_3: 4492970028260115028
Expl32Blue-Green_2: 6198051369063775420
Expl32Blue-Green_7: -3391433632283721658
Expl32Blue-Green_6: -4724533210505812769
Expl32Blue-Green_5: -3651203259675722828
Expl32Blue-Green_1: 897252288475420653
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -36,6 +36,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -196,6 +197,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Fire-Sheet_3: -7779725336386670013
Fire-Sheet_0: -2969337942446801578
Fire-Sheet_2: -4279940365266761354
Fire-Sheet_1: 7930114959436986624
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -45,6 +45,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -268,6 +269,14 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Radio-Sheet_2: -1636381221140084518
Radio-Sheet_1: 6179755577648408956
Radio-Sheet_5: 4342125769110576363
Radio-Sheet_4: 7544366249058677601
Radio-Sheet_6: 6283966628476373674
Radio-Sheet_0: 4993684613595874357
Radio-Sheet_3: 3874152439533711107
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -33,6 +33,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -172,6 +173,10 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Robot-Sheet_0: 3727881820157045684
Robot-Sheet_2: 6506387414918134206
Robot-Sheet_1: 2021580226257737229
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -30,6 +30,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -104,8 +105,8 @@ TextureImporter:
y: 0 y: 0
width: 16 width: 16
height: 16 height: 16
alignment: 0 alignment: 9
pivot: {x: 0, y: 0} pivot: {x: 0, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
outline: [] outline: []
physicsShape: [] physicsShape: []
@ -126,7 +127,7 @@ TextureImporter:
width: 16 width: 16
height: 16 height: 16
alignment: 0 alignment: 0
pivot: {x: 0, y: 0} pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
outline: [] outline: []
physicsShape: [] physicsShape: []
@ -148,6 +149,9 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
UltroPurple-Sheet_1: 4889781329962952301
UltroPurple-Sheet_0: -1579431903302429440
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -42,6 +42,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -244,6 +245,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Slime-Sheet_5: -1814283235909507114
Slime-Sheet_2: 5765889574378607175
Slime-Sheet_0: 7970909259963184619
Slime-Sheet_1: 364558614396161899
Slime-Sheet_3: 1934026264422326969
Slime-Sheet_4: -3448268118887821929
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -48,6 +48,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -292,6 +293,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Shroolder-Sheet_6: 387202860562517651
Shroolder-Sheet_0: -9061194621918183147
Shroolder-Sheet_3: -8965115719652653258
Shroolder-Sheet_4: -6326049577497598118
Shroolder-Sheet_7: 6421591052122697844
Shroolder-Sheet_5: 3005918915689391706
Shroolder-Sheet_1: -7917446092818507805
Shroolder-Sheet_2: 7672810132028723148
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -42,6 +42,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -244,6 +245,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Shruner-Sheet_5: 6197956051779204529
Shruner-Sheet_4: 8968313501289990785
Shruner-Sheet_1: -5019363646253241570
Shruner-Sheet_2: 1888233459931951096
Shruner-Sheet_0: 8652945987331315820
Shruner-Sheet_3: 259850155355359992
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -42,6 +42,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -244,6 +245,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Shroom1-Sheet_0: -877373929167104360
Shroom1-Sheet_5: -3179430747910369541
Shroom1-Sheet_4: -6224623841249604361
Shroom1-Sheet_2: 7165994529351631354
Shroom1-Sheet_3: -4515571208292737610
Shroom1-Sheet_1: -9048673401305063601
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -51,6 +51,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -148,6 +149,8 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Corner_0: 1552646742204772202
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -51,6 +51,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -316,6 +317,16 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Mgla_4: 8641239189475303839
Mgla_5: 250901082864257183
Mgla_2: -1340407427898237669
Mgla_7: -8192776219834458279
Mgla_8: 3393648004789589595
Mgla_1: -7621877171516971241
Mgla_6: 1265844999470304881
Mgla_3: 8650689174155853206
Mgla_0: 3749714225233292124
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -108,6 +108,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -772,6 +773,35 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
TileSet_3: 3637694436591301765
TileSet_5: 658610804543150169
TileSet_18: -5142650238756481487
TileSet_14: -92138599614758986
TileSet_12: -3293226114871820431
TileSet_1: -8518063296010493290
TileSet_22: -3732473049520515647
TileSet_2: -8871038989383191861
TileSet_11: -8265232490957100610
TileSet_27: 7842336126166950848
TileSet_15: 8886558474639481304
TileSet_9: -2968160521145883719
TileSet_10: -8082063572214372527
TileSet_19: -9220975972155412195
TileSet_26: 927177990519731529
TileSet_7: -3462126092104230500
TileSet_8: 3818911086006376876
TileSet_24: 4126501046328475923
TileSet_0: -8213782765776912250
TileSet_6: 1303555410413672225
TileSet_13: 3253857429519456842
TileSet_20: 8290902767777311385
TileSet_4: -8921557701501664739
TileSet_21: 8872051553670027449
TileSet_16: -5913383478371155081
TileSet_23: 1647431860368624933
TileSet_17: 8568142618917566389
TileSet_25: -8781195206041585980
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -30,6 +30,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -148,6 +149,9 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
UnderConstruction_0: 5187849822237267049
UnderConstruction_1: -2138639866025227003
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -27,6 +27,7 @@ TextureImporter:
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0 grayScaleToAlpha: 0
generateCubemap: 6 generateCubemap: 6
cubemapConvolution: 0 cubemapConvolution: 0
@ -152,6 +153,8 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable:
Square: 7482667652216324306
spritePackingTag: spritePackingTag:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0

View File

@ -1,60 +0,0 @@
=== Sat Apr 2 14:24:44 2022
Packages were changed.
Update Mode: mergeDefaultDependencies
The following packages were added:
com.unity.collab-proxy@1.15.12
com.unity.ide.rider@2.0.7
com.unity.ide.visualstudio@2.0.14
com.unity.ide.vscode@1.2.4
com.unity.modules.ai@1.0.0
com.unity.modules.androidjni@1.0.0
com.unity.modules.animation@1.0.0
com.unity.modules.assetbundle@1.0.0
com.unity.modules.audio@1.0.0
com.unity.modules.cloth@1.0.0
com.unity.modules.director@1.0.0
com.unity.modules.imageconversion@1.0.0
com.unity.modules.imgui@1.0.0
com.unity.modules.jsonserialize@1.0.0
com.unity.modules.particlesystem@1.0.0
com.unity.modules.physics@1.0.0
com.unity.modules.physics2d@1.0.0
com.unity.modules.screencapture@1.0.0
com.unity.modules.terrain@1.0.0
com.unity.modules.terrainphysics@1.0.0
com.unity.modules.tilemap@1.0.0
com.unity.modules.ui@1.0.0
com.unity.modules.uielements@1.0.0
com.unity.modules.umbra@1.0.0
com.unity.modules.unityanalytics@1.0.0
com.unity.modules.unitywebrequest@1.0.0
com.unity.modules.unitywebrequestassetbundle@1.0.0
com.unity.modules.unitywebrequestaudio@1.0.0
com.unity.modules.unitywebrequesttexture@1.0.0
com.unity.modules.unitywebrequestwww@1.0.0
com.unity.modules.vehicles@1.0.0
com.unity.modules.video@1.0.0
com.unity.modules.vr@1.0.0
com.unity.modules.wind@1.0.0
com.unity.modules.xr@1.0.0
com.unity.test-framework@1.1.29
com.unity.textmeshpro@3.0.6
com.unity.timeline@1.4.8
com.unity.ugui@1.0.0
The following packages were updated:
com.unity.2d.animation from version 5.0.10 to 5.1.0
com.unity.2d.psdimporter from version 4.1.3 to 4.2.0
com.unity.2d.spriteshape from version 5.1.7 to 5.2.0
=== Sat Apr 2 14:51:59 2022
Packages were changed.
Update Mode: updateDependencies
The following packages were updated:
com.unity.collab-proxy from version 1.15.12 to 1.15.13
com.unity.ide.vscode from version 1.2.4 to 1.2.5
com.unity.test-framework from version 1.1.29 to 1.1.31

View File

@ -1,3 +0,0 @@
Base path: '/home/dart/Unity/Hub/Editor/2020.3.32f1/Editor/Data', plugins path '/home/dart/Unity/Hub/Editor/2020.3.32f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler

View File

@ -1,18 +1,18 @@
{ {
"dependencies": { "dependencies": {
"com.unity.2d.animation": "5.1.0", "com.unity.2d.animation": "7.0.5",
"com.unity.2d.pixel-perfect": "4.0.1", "com.unity.2d.pixel-perfect": "5.0.1",
"com.unity.2d.psdimporter": "4.2.0", "com.unity.2d.psdimporter": "6.0.3",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "5.2.0", "com.unity.2d.spriteshape": "7.0.4",
"com.unity.2d.tilemap": "1.0.0", "com.unity.2d.tilemap": "1.0.0",
"com.unity.collab-proxy": "1.15.13", "com.unity.collab-proxy": "1.15.16",
"com.unity.ide.rider": "2.0.7", "com.unity.ide.rider": "3.0.14",
"com.unity.ide.visualstudio": "2.0.14", "com.unity.ide.visualstudio": "2.0.15",
"com.unity.ide.vscode": "1.2.5", "com.unity.ide.vscode": "1.2.5",
"com.unity.test-framework": "1.1.31", "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",

View File

@ -1,12 +1,11 @@
{ {
"dependencies": { "dependencies": {
"com.unity.2d.animation": { "com.unity.2d.animation": {
"version": "5.1.0", "version": "7.0.5",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "4.1.0", "com.unity.2d.common": "6.0.3",
"com.unity.mathematics": "1.1.0",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.modules.animation": "1.0.0", "com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0" "com.unity.modules.uielements": "1.0.0"
@ -14,36 +13,38 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.common": { "com.unity.2d.common": {
"version": "4.1.0", "version": "6.0.3",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.modules.uielements": "1.0.0" "com.unity.mathematics": "1.1.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.burst": "1.5.1"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.path": { "com.unity.2d.path": {
"version": "4.0.2", "version": "5.0.2",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.pixel-perfect": { "com.unity.2d.pixel-perfect": {
"version": "4.0.1", "version": "5.0.1",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.psdimporter": { "com.unity.2d.psdimporter": {
"version": "4.2.0", "version": "6.0.3",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "4.1.0", "com.unity.2d.animation": "7.0.4",
"com.unity.2d.animation": "5.1.0", "com.unity.2d.common": "6.0.3",
"com.unity.2d.sprite": "1.0.0" "com.unity.2d.sprite": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
@ -55,13 +56,13 @@
"dependencies": {} "dependencies": {}
}, },
"com.unity.2d.spriteshape": { "com.unity.2d.spriteshape": {
"version": "5.2.0", "version": "7.0.4",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.mathematics": "1.1.0", "com.unity.mathematics": "1.1.0",
"com.unity.2d.common": "4.1.0", "com.unity.2d.common": "6.0.3",
"com.unity.2d.path": "4.0.2", "com.unity.2d.path": "5.0.2",
"com.unity.modules.physics2d": "1.0.0" "com.unity.modules.physics2d": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
@ -72,8 +73,17 @@
"source": "builtin", "source": "builtin",
"dependencies": {} "dependencies": {}
}, },
"com.unity.burst": {
"version": "1.6.5",
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1"
},
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": { "com.unity.collab-proxy": {
"version": "1.15.13", "version": "1.15.16",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@ -89,16 +99,16 @@
"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.14",
"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"
}, },
"com.unity.ide.visualstudio": { "com.unity.ide.visualstudio": {
"version": "2.0.14", "version": "2.0.15",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@ -114,18 +124,27 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.mathematics": { "com.unity.mathematics": {
"version": "1.1.0", "version": "1.2.6",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"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.services.core": { "com.unity.services.core": {
"version": "1.0.1", "version": "1.3.1",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0" "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" "url": "https://packages.unity.com"
}, },
@ -150,7 +169,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": {

View 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: {}

View File

@ -1,2 +1,2 @@
m_EditorVersion: 2020.3.32f1 m_EditorVersion: 2021.3.3f1
m_EditorVersionWithRevision: 2020.3.32f1 (12f8b0834f07) m_EditorVersionWithRevision: 2021.3.3f1 (af2e63e8f9bd)

View File

@ -0,0 +1,167 @@
{
"templatePinStates": [],
"dependencyTypeInfos": [
{
"userAdded": false,
"type": "UnityEngine.AnimationClip",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.Animations.AnimatorController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.AnimatorOverrideController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.Audio.AudioMixerController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.ComputeShader",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Cubemap",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.GameObject",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.LightingDataAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": false
},
{
"userAdded": false,
"type": "UnityEngine.LightingSettings",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Material",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.MonoScript",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.PhysicMaterial",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.PhysicsMaterial2D",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.VolumeProfile",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.SceneAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": false
},
{
"userAdded": false,
"type": "UnityEngine.Shader",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.ShaderVariantCollection",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Texture",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Texture2D",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Timeline.TimelineAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
}
],
"defaultDependencyTypeInfo": {
"userAdded": false,
"type": "<default_scene_template_dependencies>",
"ignore": false,
"defaultInstantiationMode": 1,
"supportsModification": true
},
"newSceneOverride": 0
}

View File

View File

@ -1,27 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!162 &1
EditorUserSettings:
m_ObjectHideFlags: 0
serializedVersion: 4
m_ConfigSettings:
RecentlyUsedScenePath-0:
value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
flags: 0
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c72111f193f3f2566333e243d04
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
flags: 0
m_VCAutomaticAdd: 1
m_VCDebugCom: 0
m_VCDebugCmd: 0
m_VCDebugOut: 0
m_SemanticMergeMode: 2
m_VCShowFailedCheckout: 1
m_VCOverwriteFailedCheckoutAssets: 1
m_VCProjectOverlayIcons: 1
m_VCHierarchyOverlayIcons: 1
m_VCOtherOverlayIcons: 1
m_VCAllowAsyncUpdate: 1