diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs index c10d533..b70e938 100644 --- a/Assets/Scripts/PlayerMovement.cs +++ b/Assets/Scripts/PlayerMovement.cs @@ -25,8 +25,12 @@ public class PlayerMovement : MonoBehaviour rb.AddForce(forwardForce * Time.deltaTime, 0, 0); } - if (Input.GetKey ("s")) { + if (Input.GetKey("s")) { rb.AddForce(-forwardForce * Time.deltaTime, 0, 0); } + + if (Input.GetKey("a")) { + rb.AddForce(0, 0, sidewaysForce * Time.deltaTime); + } } } diff --git a/Packages/manifest.json b/Packages/manifest.json index 5992a0f..fb5099a 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -5,6 +5,7 @@ "com.unity.ide.rider": "3.0.18", "com.unity.ide.visualstudio": "2.0.17", "com.unity.ide.vscode": "1.2.5", + "com.unity.netcode.gameobjects": "1.2.0", "com.unity.test-framework": "1.1.31", "com.unity.textmeshpro": "3.0.6", "com.unity.timeline": "1.6.4", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index a1c80be..76d8438 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -1,5 +1,14 @@ { "dependencies": { + "com.unity.burst": { + "version": "1.6.6", + "depth": 2, + "source": "registry", + "dependencies": { + "com.unity.mathematics": "1.2.1" + }, + "url": "https://packages.unity.com" + }, "com.unity.collab-proxy": { "version": "2.0.0", "depth": 0, @@ -7,6 +16,16 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.collections": { + "version": "1.2.4", + "depth": 2, + "source": "registry", + "dependencies": { + "com.unity.burst": "1.6.6", + "com.unity.test-framework": "1.1.31" + }, + "url": "https://packages.unity.com" + }, "com.unity.editorcoroutines": { "version": "1.0.0", "depth": 1, @@ -60,6 +79,30 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.mathematics": { + "version": "1.2.6", + "depth": 2, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.netcode.gameobjects": { + "version": "1.2.0", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.nuget.mono-cecil": "1.10.1", + "com.unity.transport": "1.3.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.nuget.mono-cecil": { + "version": "1.10.1", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, "com.unity.performance.profile-analyzer": { "version": "1.1.1", "depth": 1, @@ -116,6 +159,17 @@ }, "url": "https://packages.unity.com" }, + "com.unity.transport": { + "version": "1.3.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.collections": "1.2.4", + "com.unity.burst": "1.6.6", + "com.unity.mathematics": "1.2.6" + }, + "url": "https://packages.unity.com" + }, "com.unity.ugui": { "version": "1.0.0", "depth": 0,