Hi
For some reason whenever this (se below) Coroutine is “done” Unity Pauses (whith the built in debug pauser). I don’t have this problem when I export the game and when I press the pausebutton to unpause it start again and works fine till the coroutine is finished, and then it pauses again. Please help. I am using this coroutine to wait till next fixedupdate so if there is a better way to do that, please tell me.
private IEnumerator LandedOnGround(Collision2D c)
{
yield return new WaitForFixedUpdate();
if (Grounded)
{
if (CanJumpOn.Contains(c.gameObject.layer))
{
haveJumped = 0;
canJumpAgain = true;
onGround = true;
}
}
}