diff options
| author | realtradam <[email protected]> | 2022-12-08 18:27:49 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-12-08 18:27:49 -0500 |
| commit | fabff5bab6c148218863fdb8d3760a8acb35915f (patch) | |
| tree | 27c3740c0da869d85fc218072da52447fa81d39a /Assets/Scripts/MovingSphere.cs | |
| parent | ea0cdb3727701791b1b1bba2c805d02e582eb99f (diff) | |
| download | Magnet-Run-3D-fabff5bab6c148218863fdb8d3760a8acb35915f.tar.gz Magnet-Run-3D-fabff5bab6c148218863fdb8d3760a8acb35915f.zip | |
fix basic scene
Diffstat (limited to 'Assets/Scripts/MovingSphere.cs')
| -rw-r--r-- | Assets/Scripts/MovingSphere.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Assets/Scripts/MovingSphere.cs b/Assets/Scripts/MovingSphere.cs index a839ca7..495d229 100644 --- a/Assets/Scripts/MovingSphere.cs +++ b/Assets/Scripts/MovingSphere.cs @@ -28,13 +28,11 @@ public class MovingSphere : MonoBehaviour Vector3 inputVelocity;
- // Start is called before the first frame update
void Awake()
{
body = GetComponent<Rigidbody>();
}
- // Update is called once per frame
void Update()
{
Vector2 playerInput = new Vector2(
@@ -68,7 +66,6 @@ public class MovingSphere : MonoBehaviour if(desiredJump)
{
- Debug.Log("Attempted Jump!");
desiredJump = false;
Jump();
}
@@ -89,7 +86,6 @@ public class MovingSphere : MonoBehaviour {
if(onGround || jumpPhase < maxAirJumps)
{
- Debug.Log("Jump!");
jumpPhase += 1;
float jumpSpeed = Mathf.Sqrt(-2f * Physics.gravity.y * jumpHeight);
if(velocity.y > 0f)
|
