This commit is contained in:
2024-10-14 10:30:38 +02:00
commit ec487096bf
167 changed files with 16245 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovementBehaviour : MonoBehaviour {
[SerializeField]
private float _movementSpeed = 1.0f;
private Vector3 _desiredMovementDirection = Vector3.zero;
public Vector3 DesiredMovementDirection
{
get => _desiredMovementDirection;
set => _desiredMovementDirection = value;
}
private void Update()
{
HandleMovement();
}
private void HandleMovement()
{
Vector3 movement = _desiredMovementDirection.normalized;
movement *= _movementSpeed;
transform.position += movement;
}
public void Jump()
{
}
}