void CommandBuildToggle() { if (IsUserInBuildMode) { freeCam.DisableFreecam(); ui.Close(); builder.Cleanup(); input.EnableKey(0, 37); input.EnableKey(0, 261); input.EnableKey(0, 262); IsUserInBuildMode = false; } else { freeCam.EnableFreecam(); input.DisableKey(0, 37); input.DisableKey(0, 261); input.DisableKey(0, 262); IsUserInBuildMode = true; } }
public override void OnStateExit() { _freecam.DisableFreecam(); }