Pit more versatile
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user