This commit is contained in:
Crizomb 2025-01-27 23:08:58 +01:00
parent 3fc57e3a64
commit afe60bae57
316 changed files with 104592 additions and 360 deletions

View file

@ -1,29 +0,0 @@
using UnityEngine;
using UnityEngine.InputSystem;
public class CameraMouvement : MonoBehaviour
{
[SerializeField] private float moveSpeed = 5f;
private Vector2 _moveInput;
public void HandleCameraMovement(InputAction.CallbackContext context)
{
_moveInput = Vector2.zero;
if (context.phase == InputActionPhase.Performed)
{
_moveInput = context.ReadValue<Vector2>();
}
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
var mouvement = moveSpeed * Time.deltaTime * (new Vector3(_moveInput.y, 0, -_moveInput.x));
transform.Translate(mouvement, Space.World);
}
}

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 9c8ad113b549ec9a0ac0bedf3875c19e