private void FixedUpdate() { if (game.isOn) { if (character.OnPath) { movement.Run(); if (character.HasWood()) { animation.RunAndCarryWood(); } else { animation.Run(); } } else { if (character.HasWood()) { character.MakeShortcutWithWoods(); movement.Run(); animation.RunAndMakeShortcut(); } else { if (!movement.JumpedOnce) { movement.Jump(); animation.Jump(); movement.JumpedOnce = true; } } } } }