Fixes and cleanup

This commit is contained in:
Norbi Peti 2020-12-08 10:26:17 +01:00
parent 6f61c8a7c4
commit c79df8a7a8
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,6 @@ public class NavMeshUpdater : MonoBehaviour
pos.x = player.position.x;
_gg.center = pos;
_gg.Scan();
//StartCoroutine((IEnumerator) _pathfinding.ScanAsync());
}
}
}

View file

@ -13,7 +13,7 @@ public class OwnCharacterController : CharacterControllerBase
public float movementSpeed;
public float sprintSpeed;
public PlatformSpawner platformSpawner;
[FormerlySerializedAs("scoreSystem")] public ScoreAndAchievements scoreAndAchievements;
public ScoreAndAchievements scoreAndAchievements;
public HUDManager hudManager;
private Vector3 _spawnPos;
@ -59,7 +59,6 @@ public class OwnCharacterController : CharacterControllerBase
if (Input.GetButtonDown("Jump") && IsOnGround())
{
//_rb.AddForce(new Vector2(0, jumpForce), ForceMode2D.Impulse);
_rb.velocity += new Vector2(0, jumpForce);
_jumpStatus = JumpStatus.Up;
_animator.SetInteger(Jump, (int) _jumpStatus);

View file

@ -35,7 +35,6 @@ public class RocketScript : MonoBehaviour
_rb.velocity = Vector2.zero;
}
//_rb.AddForce(new Vector2(_goingRight ? 10 : -10, 0));
_rb.AddForce(10 * _forward);
}

View file

@ -11,4 +11,7 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/Main.unity
guid: 2cda990e2423bbf4892e6590ba056729
- enabled: 1
path: Assets/Scenes/Achievements.unity
guid: 4bb306abbbad37820ab637b67f363aeb
m_configObjects: {}