Pingu Art und Bear mechanic

This commit is contained in:
2026-01-24 18:01:20 +01:00
parent a6c4d0ba5b
commit 7d6579dce7
16 changed files with 1468 additions and 117 deletions
-42
View File
@@ -79,48 +79,6 @@ public class PlayerMove : MonoBehaviour
}
private void Move(float _horizontalInput, float _verticalInput)
{
if (_horizontalInput != 0 && horizontal == true)
{
if (!standUp.ispushing)
{
transform.rotation = Quaternion.Euler(0f, 0f, 90f);
}
vertical = false;
moveDirection = new Vector3(_horizontalInput,0, 0);
moveDirection.Normalize();
if (!vertical && speed <= maxspeed && !standUp.ispushing)
{
speed += speedincrease;
}
}
else if (_verticalInput != 0 && vertical == true)
{
if (!standUp.ispushing)
{
transform.rotation = Quaternion.Euler(90f, 0f, 0f);
}
horizontal = false;
moveDirection = new Vector3(0, 0, _verticalInput);
moveDirection.Normalize();
if (!horizontal && speed <= maxspeed && !standUp.ispushing)
{
speed += speedincrease;
}
}
// else
// {
// StartCoroutine(Slide(slide));
// transform.rotation = Quaternion.Euler(0f, 0f, 0f);
// }
//
// transform.Translate(moveDirection * speed * Time.deltaTime, Space.World);
//Debug.Log(moveDirection);
}
IEnumerator Slide(float delay)
{