Reworked controls and fixed equipment generation with Place = Bag

This commit is contained in:
Finnchen123
2025-06-07 12:09:07 +02:00
parent faebc757f6
commit dd1b3db417
6 changed files with 54 additions and 17 deletions

View File

@@ -74,6 +74,7 @@ public class Controls : MonoBehaviour
public void FixedUpdate()
{
Debug.Log(playerInput.currentControlScheme);
if (direction != MoveDirection.None)
{
AxisEventData data = new AxisEventData(EventSystem.current);

View File

@@ -190,6 +190,7 @@ namespace Assets.Scripts
if (state == UIState.PAUSE)
{
closePauseMenu();
Cursor.lockState = CursorLockMode.Locked;
}
else
{

View File

@@ -29,7 +29,7 @@ namespace Assets.Scripts
numberOfAttributes = 0;
}
calculateAttributes(luck, numberOfAttributes);
place = (ItemPlace)rand.Next(8);
place = (ItemPlace)rand.Next(7);
editName();
loadImage();
}

View File

@@ -183,7 +183,6 @@ namespace Assets.Scripts.Player
}
public void rotate(Vector2 input, Vector2 speed){
Debug.Log(input.x * speed.x);
transform.Rotate(Vector3.up, input.x * speed.x * 5);// * Time.deltaTime);
}