void LateUpdate()
{
if (Input.GetKey(KeyCode.UpArrow))
{
weight += 1 * Time.deltaTime;
}
if (Input.GetKey(KeyCode.DownArrow))
{
weight -= 1 * Time.deltaTime;
}
if (Input.GetKey(KeyCode.Y))
{
x += 1;
}
if (Input.GetKey(KeyCode.U))
{
y += 1;
}
if (Input.GetKey(KeyCode.I))
{
z += 1;
}
if (Input.GetKey(KeyCode.H))
{
x -= 1;
}
if (Input.GetKey(KeyCode.J))
{
y -= 1;
}
if (Input.GetKey(KeyCode.K))
{
z -= 1;
}
if (Input.GetKey(KeyCode.P))
{
Debug.Log(weight);
}
ThisPlayer.Update();
hotbar.Update();
MyCamera.SetActive(true);
localGUI.gameObject.SetActive(true);
Vector3 Data = Player1Stats.GetData();
StaminaBar.transform.localScale = new Vector3(Data.y / 100, 1, 1);
HealthBar.transform.localScale = new Vector3(Data.x / 100, 1, 1);
SanityBar.transform.localScale = new Vector3(Data.z / 100, 1, 1);
ThisAudioManager.Update(100 - Data.z);
}