private void Update() { if (ErrorManager.HasError) { return; } DisposeDistance = SetDisposeDistance; MinDisposeMultiply = SetMinDisposeMultiply; GenerateDistance = SetGenerateDistance; MaxGeneratePlatforms = SetMaxGeneratePlatforms; Runner.PlayerController player = Player.Current; if (player == null) { ErrorManager.Show("ERROR", "player == null"); return; } float moveSpeed = Player.Speed * Time.deltaTime; Player.Move(moveSpeed); Generator.Generate(moveSpeed, player); Platforms.Move(moveSpeed, player); DisposedManager.Update(player); Missions.Dispatch("run", player.Distance); }