Animation tweak

This commit is contained in:
RochesterX
2025-02-07 17:48:41 -05:00
parent d975028d28
commit 6de83a4034
5 changed files with 14327 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ AnimatorStateTransition:
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
m_CanTransitionToSelf: 0
--- !u!1101 &7801668757208663834
AnimatorStateTransition:
m_ObjectHideFlags: 1

View File

@@ -230,6 +230,17 @@
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "1393e0ca-9119-4acb-8e66-7c7a05602f26",
"path": "",
"interactions": "",
"processors": "",
"groups": "",
"action": "Join",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "579f259d-1883-4fa5-bb3f-e564431fd795",

View File

@@ -271,6 +271,39 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
terminalVelocity: -15
<<<<<<< Updated upstream
=======
--- !u!111 &6769589999303328011
Animation:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1375850422501237868}
m_Enabled: 1
serializedVersion: 4
m_Animation: {fileID: 0}
m_Animations: []
m_WrapMode: 0
m_PlayAutomatically: 1
m_AnimatePhysics: 0
m_UpdateMode: 0
m_CullingType: 0
--- !u!114 &7837794651479557677
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1375850422501237868}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c8c9288561905664eade3f6b2634fc6d, type: 3}
m_Name:
m_EditorClassIdentifier:
blockArea: {fileID: 4413221056628714154}
blocking: 0
>>>>>>> Stashed changes
--- !u!1 &1648017802882051395
GameObject:
m_ObjectHideFlags: 0
@@ -641,6 +674,87 @@ MonoBehaviour:
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
<<<<<<< Updated upstream
=======
--- !u!1 &2643587497727427762
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 433891288162264128}
- component: {fileID: 4413221056628714154}
m_Layer: 0
m_Name: Block Hitbox
m_TagString: Punch Hurtbox
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &433891288162264128
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2643587497727427762}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 1.4, y: 0.3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7009259675412950971}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!61 &4413221056628714154
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2643587497727427762}
m_Enabled: 1
serializedVersion: 3
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 1
m_UsedByEffector: 0
m_CompositeOperation: 0
m_CompositeOrder: 0
m_Offset: {x: 0.38033098, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0}
oldSize: {x: 0, y: 0}
newSize: {x: 0, y: 0}
adaptiveTilingThreshold: 0
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Size: {x: 2.750043, y: 1.2534463}
m_EdgeRadius: 0
>>>>>>> Stashed changes
--- !u!1 &3572452013539030063
GameObject:
m_ObjectHideFlags: 0

View File

@@ -15,11 +15,12 @@ public class Punch : MonoBehaviour
private void Start()
{
actions = GetComponent<PlayerInput>().actions;
cancelable = true;
}
private void Update()
{
if (actions.FindAction("Punch").ReadValue<float>() == 1f)
if (actions.FindAction("Punch").WasPressedThisFrame())
{
if (!cancelable) return;
GetComponent<AnimationPlayer>().Punch();

14199
mono_crash.3941ebdff4.0.json Normal file

File diff suppressed because it is too large Load Diff