Worked on UI and translation, worked on classes and races, worked on camera

This commit is contained in:
TAASONI3
2024-06-30 20:00:34 +02:00
parent cbd086d658
commit 80e11d3ce0
33 changed files with 3415 additions and 860 deletions

View File

@@ -20,9 +20,10 @@ public class Controls : MonoBehaviour
PlayerInput playerInput;
MoveDirection direction;
public float mouseSpeed = 10f; //the sensibility
public float controllerSpeed = 1f; //the sensibility
public Vector2 sensitivityController = new Vector2(0,0);
public Vector2 sensitivityMouse = new Vector2(0,0);
float multiplier = 0.01f; //DEV Purpose only
void Start()
{
@@ -55,12 +56,12 @@ public class Controls : MonoBehaviour
if (uihandler.canPlayerRotate())
{
if(playerInput.currentControlScheme == "Controller"){
playerCam.GetComponent<PlayerCamera>().lookAround(view, controllerSpeed);
player.GetComponent<PlayerGameObject>().rotate(view, controllerSpeed);
playerCam.GetComponent<PlayerCamera>().lookAround(view, sensitivityController * multiplier);
player.GetComponent<PlayerGameObject>().rotate(view, sensitivityController * multiplier);
}
else{
playerCam.GetComponent<PlayerCamera>().lookAround(view, mouseSpeed);
player.GetComponent<PlayerGameObject>().rotate(view, mouseSpeed);
playerCam.GetComponent<PlayerCamera>().lookAround(view, sensitivityMouse * multiplier);
player.GetComponent<PlayerGameObject>().rotate(view, sensitivityMouse * multiplier);
}
}
if (uihandler.canPlayerMove())