Add LogPlugin, otherwise the ambiguity detector doesn't work. (#1740)

This commit is contained in:
Nolan Darilek 2021-03-23 20:29:28 +00:00
parent 9ae56e8604
commit 9c252e904a

View File

@ -1,6 +1,7 @@
use bevy::{ use bevy::{
app::{AppExit, ScheduleRunnerPlugin, ScheduleRunnerSettings}, app::{AppExit, ScheduleRunnerPlugin, ScheduleRunnerSettings},
ecs::schedule::ReportExecutionOrderAmbiguities, ecs::schedule::ReportExecutionOrderAmbiguities,
log::LogPlugin,
prelude::*, prelude::*,
utils::Duration, utils::Duration,
}; };
@ -338,9 +339,10 @@ fn main() {
game_over_system.system().after(MyLabels::ScoreCheck), game_over_system.system().after(MyLabels::ScoreCheck),
) )
// We can check our systems for execution order ambiguities by examining the output produced // We can check our systems for execution order ambiguities by examining the output produced
// in the console by adding the following Resource to our App :) // in the console by using the `LogPlugin` and adding the following Resource to our App :)
// Be aware that not everything reported by this checker is a potential problem, you'll have // Be aware that not everything reported by this checker is a potential problem, you'll have
// to make that judgement yourself. // to make that judgement yourself.
.add_plugin(LogPlugin::default())
.insert_resource(ReportExecutionOrderAmbiguities) .insert_resource(ReportExecutionOrderAmbiguities)
// This call to run() starts the app we just built! // This call to run() starts the app we just built!
.run(); .run();