This commit is contained in:
BOT Alex 2024-02-04 06:13:24 +01:00
commit c97c58c400
31 changed files with 458 additions and 266 deletions

View File

@ -1,56 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1102 &-8349034508235637004
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Swing
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 627150c151bf3fa40b70f232e0aa7f7a, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &-6173615721886091892
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Idle
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 9123080415032741332}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1107 &-4590016191452643091
AnimatorStateMachine:
serializedVersion: 6
@ -68,29 +17,51 @@ AnimatorStateMachine:
m_Position: {x: 470, y: 80, z: 0}
- serializedVersion: 1
m_State: {fileID: 5718945116413065706}
m_Position: {x: 360, y: 220, z: 0}
- serializedVersion: 1
m_State: {fileID: -8349034508235637004}
m_Position: {x: 400, y: 10, z: 0}
m_Position: {x: 130, y: 110, z: 0}
- serializedVersion: 1
m_State: {fileID: 3308394434488297487}
m_Position: {x: 420, y: 140, z: 0}
- serializedVersion: 1
m_State: {fileID: -4512082985165587279}
m_Position: {x: 130, y: -20, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions:
- {fileID: -6173615721886091892}
- {fileID: 5712453572289168545}
- {fileID: -2232175589853228148}
- {fileID: 4210568570521344070}
- {fileID: -2601431713474190462}
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 170, y: 80, z: 0}
m_AnyStatePosition: {x: -180, y: -80, z: 0}
m_EntryPosition: {x: -160, y: 180, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 9123080415032741332}
--- !u!1101 &-2601431713474190462
--- !u!1102 &-4512082985165587279
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Swing
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 4529714568082305897}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 627150c151bf3fa40b70f232e0aa7f7a, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &-2150761196750939476
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
@ -98,44 +69,19 @@ AnimatorStateTransition:
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Run
- m_ConditionMode: 2
m_ConditionEvent: IsRunning
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 5718945116413065706}
m_DstState: {fileID: 9123080415032741332}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &-2232175589853228148
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Mop
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 548892628922324246}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_HasExitTime: 0
m_ExitTime: 0.516129
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
@ -149,42 +95,18 @@ AnimatorController:
m_Name: PlayerAnimations1
serializedVersion: 5
m_AnimatorParameters:
- m_Name: Idle
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Run
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Mop
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: RunMop
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Swing
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: IsRunning
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: IsSwinging
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
@ -250,7 +172,7 @@ AnimatorState:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &4210568570521344070
--- !u!1101 &4529714568082305897
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
@ -258,24 +180,24 @@ AnimatorStateTransition:
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: RunMop
- m_ConditionMode: 2
m_ConditionEvent: IsSwinging
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 3308394434488297487}
m_DstState: {fileID: 9123080415032741332}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_ExitTime: 0
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &5712453572289168545
--- !u!1101 &5149346213670764323
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
@ -284,17 +206,20 @@ AnimatorStateTransition:
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: Swing
m_ConditionEvent: IsRunning
m_EventTreshold: 0
- m_ConditionMode: 2
m_ConditionEvent: IsSwinging
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -8349034508235637004}
m_DstState: {fileID: 5718945116413065706}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_ExitTime: 0
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
@ -310,7 +235,8 @@ AnimatorState:
m_Name: Running
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_Transitions:
- {fileID: -2150761196750939476}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
@ -336,7 +262,8 @@ AnimatorState:
m_Name: Idle
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_Transitions:
- {fileID: 5149346213670764323}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0

View File

@ -31,7 +31,7 @@ AnimationClip:
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.85
time: 0.5
value: 1
inSlope: Infinity
outSlope: Infinity
@ -39,6 +39,15 @@ AnimationClip:
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
@ -52,20 +61,18 @@ AnimationClip:
curve:
- time: 0
value: {fileID: 21300000, guid: 240c3a2ef21982f4590d6cd434d91f27, type: 3}
- time: 0.11666667
value: {fileID: 21300000, guid: 0bac1dfd4dd5df344ade6d0dfc5aa77f, type: 3}
- time: 0.25
- time: 0.16666667
value: {fileID: 21300000, guid: 2f7b336ea4b22104b831a5aa4ce63e65, type: 3}
- time: 0.36666667
value: {fileID: 21300000, guid: db90fe6a45c83a74b88da01e595e40ed, type: 3}
- time: 0.48333332
- time: 0.33333334
value: {fileID: 21300000, guid: d8c1ff9b90b62814bbb6894bfcf4b2bb, type: 3}
- time: 0.6
value: {fileID: 21300000, guid: de98b85f0c0593e4389e93a6542ba161, type: 3}
- time: 0.73333335
- time: 0.5
value: {fileID: 21300000, guid: b9a4237d2fdcb3044a222171250fa5fc, type: 3}
- time: 0.85
value: {fileID: 21300000, guid: 670971dc022801d4aa435f32749cdf05, type: 3}
- time: 0.6666667
value: {fileID: 21300000, guid: b9a4237d2fdcb3044a222171250fa5fc, type: 3}
- time: 0.8333333
value: {fileID: 21300000, guid: d8c1ff9b90b62814bbb6894bfcf4b2bb, type: 3}
- time: 1
value: {fileID: 21300000, guid: 240c3a2ef21982f4590d6cd434d91f27, type: 3}
attribute: m_Sprite
path:
classID: 212
@ -98,24 +105,23 @@ AnimationClip:
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: 21300000, guid: 240c3a2ef21982f4590d6cd434d91f27, type: 3}
- {fileID: 21300000, guid: 0bac1dfd4dd5df344ade6d0dfc5aa77f, type: 3}
- {fileID: 21300000, guid: 2f7b336ea4b22104b831a5aa4ce63e65, type: 3}
- {fileID: 21300000, guid: db90fe6a45c83a74b88da01e595e40ed, type: 3}
- {fileID: 21300000, guid: d8c1ff9b90b62814bbb6894bfcf4b2bb, type: 3}
- {fileID: 21300000, guid: de98b85f0c0593e4389e93a6542ba161, type: 3}
- {fileID: 21300000, guid: b9a4237d2fdcb3044a222171250fa5fc, type: 3}
- {fileID: 21300000, guid: 670971dc022801d4aa435f32749cdf05, type: 3}
- {fileID: 21300000, guid: b9a4237d2fdcb3044a222171250fa5fc, type: 3}
- {fileID: 21300000, guid: d8c1ff9b90b62814bbb6894bfcf4b2bb, type: 3}
- {fileID: 21300000, guid: 240c3a2ef21982f4590d6cd434d91f27, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 0.8666667
m_StopTime: 1.0166667
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
@ -140,7 +146,7 @@ AnimationClip:
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.85
time: 0.5
value: 1
inSlope: Infinity
outSlope: Infinity
@ -148,6 +154,15 @@ AnimationClip:
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4

View File

@ -17,21 +17,64 @@ AnimationClip:
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_PPtrCurves: []
m_PPtrCurves:
- serializedVersion: 2
curve:
- time: 0
value: {fileID: 21300000, guid: 718f5294a4376b64cb1b4cb93b2b1ea1, type: 3}
- time: 0.083333336
value: {fileID: 21300000, guid: 927cd4e90ba89684f84229f89f220660, type: 3}
- time: 0.16666667
value: {fileID: 21300000, guid: a625fc2e591f7094da80bdc3fd188d06, type: 3}
- time: 0.25
value: {fileID: 21300000, guid: eb7c2944822958b4fa3ad0023fd8164a, type: 3}
- time: 0.33333334
value: {fileID: 21300000, guid: 98f2e9a668168094bbfdbe8ba57620a8, type: 3}
- time: 0.4
value: {fileID: 21300000, guid: 2e7e60ee50a68f94c94136dbe15a0447, type: 3}
- time: 0.48333332
value: {fileID: 21300000, guid: b8376989601bc5e44af322802fef6db9, type: 3}
- time: 0.56666666
value: {fileID: 21300000, guid: 897ff56abdcb11a46844ac4f9cf6e86a, type: 3}
- time: 0.65
value: {fileID: 21300000, guid: a199fca6ae9a9d04bb5b55861ba9cc93, type: 3}
attribute: m_Sprite
path:
classID: 212
script: {fileID: 0}
flags: 2
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings: []
pptrCurveMapping: []
genericBindings:
- serializedVersion: 2
path: 0
attribute: 0
script: {fileID: 0}
typeID: 212
customType: 23
isPPtrCurve: 1
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: 21300000, guid: 718f5294a4376b64cb1b4cb93b2b1ea1, type: 3}
- {fileID: 21300000, guid: 927cd4e90ba89684f84229f89f220660, type: 3}
- {fileID: 21300000, guid: a625fc2e591f7094da80bdc3fd188d06, type: 3}
- {fileID: 21300000, guid: eb7c2944822958b4fa3ad0023fd8164a, type: 3}
- {fileID: 21300000, guid: 98f2e9a668168094bbfdbe8ba57620a8, type: 3}
- {fileID: 21300000, guid: 2e7e60ee50a68f94c94136dbe15a0447, type: 3}
- {fileID: 21300000, guid: b8376989601bc5e44af322802fef6db9, type: 3}
- {fileID: 21300000, guid: 897ff56abdcb11a46844ac4f9cf6e86a, type: 3}
- {fileID: 21300000, guid: a199fca6ae9a9d04bb5b55861ba9cc93, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 1
m_StopTime: 0.6666666
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0

View File

@ -11,15 +11,43 @@ AnimatorStateTransition:
- m_ConditionMode: 1
m_ConditionEvent: IsRunning
m_EventTreshold: 0
- m_ConditionMode: 2
m_ConditionEvent: IsSwinging
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 8304111510876962717}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0
m_TransitionOffset: 0
m_ExitTime: 0
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &-5519219387846060971
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 2
m_ConditionEvent: IsSwinging
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 3357306648811348641}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.75
m_ExitTime: 0.516129
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
@ -39,7 +67,7 @@ AnimatorStateMachine:
m_Position: {x: 20, y: -30, z: 0}
- serializedVersion: 1
m_State: {fileID: -944807189804630194}
m_Position: {x: 530, y: 80, z: 0}
m_Position: {x: 270, y: -100, z: 0}
- serializedVersion: 1
m_State: {fileID: 3748437463534410733}
m_Position: {x: 530, y: 170, z: 0}
@ -78,9 +106,9 @@ AnimatorStateTransition:
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.516129
m_ExitTime: 0
m_HasExitTime: 1
m_HasFixedDuration: 1
m_HasFixedDuration: 0
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
@ -94,7 +122,8 @@ AnimatorState:
m_Name: Swing
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_Transitions:
- {fileID: -5519219387846060971}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
@ -119,42 +148,18 @@ AnimatorController:
m_Name: PlayerAnimations2
serializedVersion: 5
m_AnimatorParameters:
- m_Name: Idle
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Run
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Mop
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: Swing
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: RunMop
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: IsRunning
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: IsSwinging
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer

View File

@ -82,7 +82,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0

View File

@ -16,26 +16,63 @@ AnimationClip:
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves: []
m_FloatCurves:
- serializedVersion: 2
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.5
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_FlipX
path:
classID: 212
script: {fileID: 0}
flags: 0
m_PPtrCurves:
- serializedVersion: 2
curve:
- time: 0
value: {fileID: 21300000, guid: eae7bedc4ba0bb44da9664f6f2ae65b0, type: 3}
- time: 0.06666667
value: {fileID: 21300000, guid: a37285ebdc2fd7e419c0bfe4733bc263, type: 3}
- time: 0.15
- time: 0.16666667
value: {fileID: 21300000, guid: 6c5d88e222f01644c974b1fe56678bc4, type: 3}
- time: 0.21666667
value: {fileID: 21300000, guid: d84da234fa9972e44a5a5af15235039d, type: 3}
- time: 0.28333333
value: {fileID: 21300000, guid: 497fefedd06d8be4585f1a3cd1eeeb3f, type: 3}
- time: 0.35
- time: 0.33333334
value: {fileID: 21300000, guid: 61363c0901fc4ea469121a6c5e829f24, type: 3}
- time: 0.43333334
value: {fileID: 21300000, guid: 587fa26a589bca040b756dae3592887a, type: 3}
- time: 0.5
value: {fileID: 21300000, guid: d011fbed2a802ed4c87033485707790d, type: 3}
- time: 0.6666667
value: {fileID: 21300000, guid: 587fa26a589bca040b756dae3592887a, type: 3}
- time: 0.8333333
value: {fileID: 21300000, guid: a37285ebdc2fd7e419c0bfe4733bc263, type: 3}
- time: 1
value: {fileID: 21300000, guid: 497fefedd06d8be4585f1a3cd1eeeb3f, type: 3}
attribute: m_Sprite
path:
classID: 212
@ -48,6 +85,15 @@ AnimationClip:
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 555744692
script: {fileID: 0}
typeID: 212
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 0
attribute: 0
@ -59,24 +105,23 @@ AnimationClip:
isSerializeReferenceCurve: 0
pptrCurveMapping:
- {fileID: 21300000, guid: eae7bedc4ba0bb44da9664f6f2ae65b0, type: 3}
- {fileID: 21300000, guid: a37285ebdc2fd7e419c0bfe4733bc263, type: 3}
- {fileID: 21300000, guid: 6c5d88e222f01644c974b1fe56678bc4, type: 3}
- {fileID: 21300000, guid: d84da234fa9972e44a5a5af15235039d, type: 3}
- {fileID: 21300000, guid: 497fefedd06d8be4585f1a3cd1eeeb3f, type: 3}
- {fileID: 21300000, guid: 61363c0901fc4ea469121a6c5e829f24, type: 3}
- {fileID: 21300000, guid: 587fa26a589bca040b756dae3592887a, type: 3}
- {fileID: 21300000, guid: d011fbed2a802ed4c87033485707790d, type: 3}
- {fileID: 21300000, guid: 587fa26a589bca040b756dae3592887a, type: 3}
- {fileID: 21300000, guid: a37285ebdc2fd7e419c0bfe4733bc263, type: 3}
- {fileID: 21300000, guid: 497fefedd06d8be4585f1a3cd1eeeb3f, type: 3}
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 0.51666665
m_StopTime: 1.0166667
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
@ -86,7 +131,46 @@ AnimationClip:
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves: []
m_EditorCurves:
- serializedVersion: 2
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.5
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_FlipX
path:
classID: 212
script: {fileID: 0}
flags: 0
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0

View File

@ -203,6 +203,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9fa05ebd2f063df4a8079e013369f78b, type: 3}
m_Name:
m_EditorClassIdentifier:
healthBar: {fileID: 0}
--- !u!1 &6905705041633878913
GameObject:
m_ObjectHideFlags: 0
@ -327,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &3477818934881411113
MonoBehaviour:
m_ObjectHideFlags: 0
@ -340,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 8428770856484636299}
--- !u!70 &58401337460216238
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -119,6 +119,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9fa05ebd2f063df4a8079e013369f78b, type: 3}
m_Name:
m_EditorClassIdentifier:
healthBar: {fileID: 0}
--- !u!1 &6905705041633878913
GameObject:
m_ObjectHideFlags: 0
@ -219,7 +220,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &1203571175389907979
MonoBehaviour:
m_ObjectHideFlags: 0
@ -232,7 +233,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 8111329671581128041}
--- !u!70 &4546369442828517320
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -119,6 +119,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9fa05ebd2f063df4a8079e013369f78b, type: 3}
m_Name:
m_EditorClassIdentifier:
healthBar: {fileID: 0}
--- !u!1 &5264004513177534146
GameObject:
m_ObjectHideFlags: 0
@ -303,7 +304,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &7065122129502476799
MonoBehaviour:
m_ObjectHideFlags: 0
@ -316,7 +317,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 7639895946029500357}
--- !u!70 &1757117162005437690
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -244,7 +244,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &8407687426537136098
MonoBehaviour:
m_ObjectHideFlags: 0
@ -257,7 +257,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 8131507713407366277}
--- !u!70 &5347138904714296145
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &2239829156743597080
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 833665078815953586}
--- !u!70 &9116721273772261298
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &2593167518683313509
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 7183425510269105097}
--- !u!70 &1597969697045467354
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -220,7 +220,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &5601190281078907372
MonoBehaviour:
m_ObjectHideFlags: 0
@ -233,7 +233,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 1792220776575088205}
--- !u!70 &5775148875117303771
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &5537633588480359369
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 799119378079257124}
--- !u!70 &629574706924414947
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &5342177024833758816
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 8845322091694779043}
--- !u!70 &9180341162620792323
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -244,7 +244,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &6703538002322560484
MonoBehaviour:
m_ObjectHideFlags: 0
@ -257,7 +257,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 6845376844323151706}
--- !u!70 &1593837753105570956
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &5189432348483020584
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 4819874625761020595}
--- !u!70 &6992716262122209801
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &8229201628275188815
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 3466740024957840811}
--- !u!70 &5275513863136233879
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &17691115352120009
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 2397480649246164426}
--- !u!70 &853766927484383816
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &893626435943606516
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 1166639589295390852}
--- !u!70 &1353826037353208613
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &2019234432969631736
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 6053117177104604418}
--- !u!70 &1104779658182803384
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &4552190225719755244
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 2639723550158062772}
--- !u!70 &7675421169139995944
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &7803025104266690665
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 9140022268088615716}
--- !u!70 &4435590555684305438
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -328,7 +328,7 @@ MonoBehaviour:
ropeDistCheck: 1
ropeCheckMask:
serializedVersion: 2
m_Bits: 0
m_Bits: 64
--- !u!114 &316906110964971930
MonoBehaviour:
m_ObjectHideFlags: 0
@ -341,7 +341,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 1
flipTrans: {fileID: 3920219362688286786}
body: {fileID: 1721532817145052869}
--- !u!70 &3935275739920240744
CapsuleCollider2D:
m_ObjectHideFlags: 0

View File

@ -277,6 +277,8 @@ GameObject:
- component: {fileID: 8584374946327201457}
- component: {fileID: 2455289449300252362}
- component: {fileID: 3389629528887116870}
- component: {fileID: 1160419468000791564}
- component: {fileID: 1691493459240420355}
m_Layer: 7
m_Name: Player1
m_TagString: Player
@ -397,6 +399,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9c2ddf673a65d3d49bc9470e1a4572e4, type: 3}
m_Name:
m_EditorClassIdentifier:
animator: {fileID: 0}
--- !u!114 &1749848915408613053
MonoBehaviour:
m_ObjectHideFlags: 0
@ -409,6 +412,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b69b92d72c7244443854899c4b700d9c, type: 3}
m_Name:
m_EditorClassIdentifier:
animationHandler: {fileID: 3878447480781341932}
playerInput: {fileID: 1949941092232239315}
otherPlayerAttack: {fileID: 0}
playerMovement: {fileID: 651446758998956252}
@ -443,7 +447,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6b097a132c072b72fbc7808ebf263e52, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &8584374946327201457
--- !u!114 &1160419468000791564
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -455,8 +459,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
--- !u!114 &2455289449300252362
flipTrans: {fileID: 320690117028550720}
body: {fileID: 1508323898269695585}
--- !u!114 &1691493459240420355
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

View File

@ -193,6 +193,8 @@ GameObject:
- component: {fileID: 507903157909478597}
- component: {fileID: 3245702757494549198}
- component: {fileID: 5108819328747686001}
- component: {fileID: 8956099385762146752}
- component: {fileID: 5150961666696654592}
m_Layer: 7
m_Name: Player2
m_TagString: Player
@ -313,6 +315,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9c2ddf673a65d3d49bc9470e1a4572e4, type: 3}
m_Name:
m_EditorClassIdentifier:
animator: {fileID: 0}
--- !u!114 &7071433868121438663
MonoBehaviour:
m_ObjectHideFlags: 0
@ -325,6 +328,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b69b92d72c7244443854899c4b700d9c, type: 3}
m_Name:
m_EditorClassIdentifier:
animationHandler: {fileID: 3878447480781341932}
playerInput: {fileID: 1949941092232239315}
otherPlayerAttack: {fileID: 0}
playerMovement: {fileID: 651446758998956252}
@ -346,7 +350,7 @@ MonoBehaviour:
movement: {x: 0, y: 0}
look: {x: 0, y: 0}
whipAttack: 0
useArrowKeys: 0
useArrowKeys: 1
--- !u!114 &7729933180365677331
MonoBehaviour:
m_ObjectHideFlags: 0
@ -359,7 +363,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6b097a132c072b72fbc7808ebf263e52, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &507903157909478597
--- !u!114 &8956099385762146752
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -371,8 +375,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c66441ada081b6c4c841000e83cc2b7a, type: 3}
m_Name:
m_EditorClassIdentifier:
invert: 0
--- !u!114 &3245702757494549198
flipTrans: {fileID: 320690117028550720}
body: {fileID: 1508323898269695585}
--- !u!114 &5150961666696654592
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

View File

@ -3155,6 +3155,57 @@ Transform:
m_CorrespondingSourceObject: {fileID: 7963277203851359012, guid: 4272a1edbb0783e4c9af0d318ea4e861, type: 3}
m_PrefabInstance: {fileID: 1452965467}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1481267922
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1481267923}
m_Layer: 0
m_Name: damageTexts
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1481267923
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481267922}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -11.037183, y: -2.1713283, z: -10.039575}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1566837117 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 809911508645467208, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3}
m_PrefabInstance: {fileID: 1683288374126251321}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1566837120
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1566837117}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aab27275f26e5e244856836f6d17b909, type: 3}
m_Name:
m_EditorClassIdentifier:
textParent: {fileID: 1481267923}
damageTextPrefab: {fileID: 8357464303304312906, guid: 25c9a2db8fc5b7c4f8feebba5c73e7a3, type: 3}
lifeTime: 3
--- !u!1 &1579580564 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3120938410244321186, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3}
@ -3738,7 +3789,10 @@ PrefabInstance:
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 809911508645467208, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3}
insertIndex: -1
addedObject: {fileID: 1566837120}
m_SourcePrefab: {fileID: 100100000, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3}
--- !u!1001 &4910321061857220295
PrefabInstance:
@ -4008,3 +4062,4 @@ SceneRoots:
- {fileID: 8530121857647845872}
- {fileID: 5796191506433166633}
- {fileID: 1872712131}
- {fileID: 1481267923}

View File

@ -17,6 +17,6 @@ public class PS5Controller : MonoBehaviour
// Update is called once per frame
void Update()
{
Gamepad.all[0].SetMotorSpeeds(100, 100);
}
}

View File

@ -4,7 +4,7 @@ using UnityEngine;
public class PlayerAnimationHandler : MonoBehaviour
{
Animator animator;
public Animator animator;
void Start()
{
@ -19,9 +19,9 @@ public class PlayerAnimationHandler : MonoBehaviour
{
animator.SetBool("IsRunning", state);
}
public void Swing()
public void Swing(bool state)
{
animator.SetTrigger("Swing");
animator.SetBool("IsSwinging", state);
}
public void Mop()
{

View File

@ -3,9 +3,11 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using System.Linq;
using UnityUtils;
public class RopeWhipAttack : MonoBehaviour
{
[SerializeField] PlayerAnimationHandler animationHandler;
[SerializeField] PlayerInput playerInput;
public RopeWhipAttack otherPlayerAttack;
@ -28,13 +30,43 @@ public class RopeWhipAttack : MonoBehaviour
if (playerInput.whipAttack)
{
// reset local scale so rotations match up
transform.localScale = transform.localScale.With(x: 1f);
animationHandler.Swing(true);
animationHandler.animator.speed = 0f;
float radianAngle = CalculateAngleBetwenRight();
float sign = Mathf.Sign(radianAngle);
//if (sign < 0)
// transform.localScale = transform.localScale.With(x: -1f);
//else
// transform.localScale = transform.localScale.With(x: 1f);
float t = Mathf.Abs(radianAngle) / 360;
if (sign > 0)
t -= (radianAngle - 180) / 180 * sign;
//Debug.Log($"angle: {radianAngle}, t: {t}, sgn: {sign}");
animationHandler.animator.Play("Swing", 0, t);
joint.locked = true;
otherPlayerAttack.joint.body.drag = 0f;
}
else
{
animationHandler.Swing(false);
animationHandler.animator.speed = 1f;
animationHandler.animator.StopPlayback();
joint.locked = false;
otherPlayerAttack.joint.body.drag = otherPlayerAttack.initialDrag;
}
}
float CalculateAngleBetwenRight()
{
Vector2 ropeDir = (otherPlayerAttack.joint.anchor.position - joint.anchor.position).normalized;
float angle = Vector2.SignedAngle(Vector2.right, ropeDir);
return angle;
}
}

View File

@ -1,8 +1,10 @@
using UnityEngine;
using UnityUtils;
public class SpriteMovementFlipper : MonoBehaviour
{
[SerializeField] private bool invert = false;
[SerializeField] Transform flipTrans;
[SerializeField] Rigidbody2D body;
SpriteRenderer sp;
@ -15,15 +17,13 @@ public class SpriteMovementFlipper : MonoBehaviour
private void Update()
{
if ((transform.position - prevPos).x > 0.05f)
if (body.velocity.x > 0.1f)
{
sp.flipX = invert;
flipTrans.localScale = flipTrans.localScale.With(x: 1f);
}
else if ((transform.position - prevPos).x < -0.05f)
else if (body.velocity.x < -0.1f)
{
sp.flipX = !invert;
}
prevPos = transform.position;
flipTrans.localScale = flipTrans.localScale.With(x: -1f);
}
}
}