zhen zync

This commit is contained in:
Sveske Juice 2024-02-03 12:38:42 -08:00
parent 3ad9042702
commit 62afc25653
4 changed files with 8 additions and 2 deletions

View File

@ -225,6 +225,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3dbdb849a2f5df14d9e109a7776c5ac0, type: 3}
m_Name:
m_EditorClassIdentifier:
animationHandler: {fileID: 3878447480781341932}
moveSpeed: 70
stepCooldown: 0.2
stepVibrationTime: 0.05

View File

@ -225,6 +225,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 3dbdb849a2f5df14d9e109a7776c5ac0, type: 3}
m_Name:
m_EditorClassIdentifier:
animationHandler: {fileID: 3878447480781341932}
moveSpeed: 65
stepCooldown: 0.2
stepVibrationTime: 0.05

View File

@ -7,6 +7,7 @@ using System.Linq;
[RequireComponent(typeof(PlayerInput))]
public class PlayerMovement : MonoBehaviour
{
public PlayerAnimationHandler animationHandler;
public float moveSpeed = 5f;
private Rigidbody2D rb;
@ -48,7 +49,7 @@ public class PlayerMovement : MonoBehaviour
if (playerInput.movement != Vector2.zero)
{
RumbleWalk();
GetComponent<PlayerAnimationHandler>().Run();
animationHandler.Run();
}
}
private void FixedUpdate()

View File

@ -263,7 +263,10 @@ public class RopeSimulator : MonoBehaviour
// Handle squeze kills
foreach (var collider in colliderToSquezeForce)
{
ISquezeDamageReceiver squezeDamageReceiver = collider.Key.GetComponent<ISquezeDamageReceiver>();
ISquezeDamageReceiver squezeDamageReceiver = collider.Key.transform.root.GetComponent<ISquezeDamageReceiver>();
if (squezeDamageReceiver == null)
squezeDamageReceiver = collider.Key.GetComponent<ISquezeDamageReceiver>();
if (squezeDamageReceiver == null) continue;
squezeDamageReceiver.TakeSquezeDamage(collider.Value * squezeDamage);