Updated Unity to unity 6.

This commit is contained in:
Finnchen123
2025-06-07 09:05:32 +02:00
parent b65929243b
commit 5a68fc0447
11 changed files with 2558 additions and 197 deletions

View File

@@ -22,7 +22,6 @@ MonoBehaviour:
m_ReadOnly: 1
m_SerializedLabels:
- Locale-en
- Preload
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 32ad8ebbbed827b67a2ab07fb07a244f, type: 2}

View File

@@ -22,7 +22,6 @@ MonoBehaviour:
m_ReadOnly: 1
m_SerializedLabels:
- Locale-de
- Preload
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: 32ad8ebbbed827b67a2ab07fb07a244f, type: 2}

View File

@@ -13993,7 +13993,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: German
m_Text: 800x600
--- !u!222 &722907595
CanvasRenderer:
m_ObjectHideFlags: 0

View File

@@ -169,7 +169,7 @@ namespace Assets.Scripts.Player
public void move(Vector3 input)
{
if(gameObject.GetComponent<Rigidbody>().velocity.y <= 0.1f && gameObject.GetComponent<Rigidbody>().velocity.y >= -0.1f){
if(gameObject.GetComponent<Rigidbody>().linearVelocity.y <= 0.1f && gameObject.GetComponent<Rigidbody>().linearVelocity.y >= -0.1f){
jumpFrameCounter++;
}
@@ -181,7 +181,7 @@ namespace Assets.Scripts.Player
{
if (canJump)
{
gameObject.GetComponent<Rigidbody>().velocity = new Vector3(0, 5, 0);
gameObject.GetComponent<Rigidbody>().linearVelocity = new Vector3(0, 5, 0);
audioHandler.playJump();
canJump = false;
}