Merge branch 'main' of https://git.steelants.cz/GJP/GGJ2022
This commit is contained in:
commit
3eb64a5b95
@ -113,6 +113,16 @@ public class PlayerController : MonoBehaviour
|
||||
jump = false;
|
||||
}
|
||||
|
||||
if(rb.velocity.magnitude != 0 && rb.velocity.normalized == this.downDirection.normalized)
|
||||
{
|
||||
// Debug.Log("Player is falling :)");
|
||||
this.isFalling = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.isFalling = false;
|
||||
}
|
||||
|
||||
if (saveDirection != Vector3.zero)
|
||||
{
|
||||
Vector3 axis;
|
||||
|
Loading…
Reference in New Issue
Block a user