Pit more versatile

This commit is contained in:
2026-01-23 19:20:39 +01:00
parent 9c1ac2c040
commit 3257f23245
6 changed files with 44 additions and 37 deletions
+1 -5
View File
@@ -8,7 +8,6 @@ public class PlayerMove : MonoBehaviour
[SerializeField] private float speed;
[SerializeField] private float speedincrease;
private Rigidbody rb;
[SerializeField] private Vector3 StartPos;
[SerializeField] private float slide;
Vector3 moveDirection;
@@ -67,10 +66,7 @@ public class PlayerMove : MonoBehaviour
transform.Translate(moveDirection * speed * Time.deltaTime, Space.World);
}
public void Reset()
{
this.transform.position = StartPos;
}
IEnumerator Slide(float delay)
{