wip upgrade

This commit is contained in:
Swrup 2025-04-16 22:27:43 +02:00
parent b69952e559
commit 7f57c478c0
5 changed files with 11 additions and 9 deletions

View file

@ -10,7 +10,7 @@ pub struct Evil;
pub struct CloudPlugin;
impl Plugin for CloudPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.init_resource::<NewCloudTimer>()
.add_system_set(
SystemSet::on_enter(AppState::InGame)

View file

@ -9,7 +9,7 @@ pub struct Montociel;
pub struct MontocielPlugin;
impl Plugin for MontocielPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.add_system_set(
SystemSet::on_enter(AppState::InGame).with_system(spawn_montociel.system()),
)

View file

@ -26,7 +26,7 @@ impl Score {
pub struct ScorePlugin;
impl Plugin for ScorePlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.init_resource::<Score>()
.add_system_set(
SystemSet::on_enter(AppState::InGame).with_system(setup_score_ui.system()),

View file

@ -4,7 +4,7 @@ use bevy::prelude::*;
pub struct UIPlugin;
impl Plugin for UIPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.add_system_set(SystemSet::on_enter(AppState::Menu).with_system(setup_button.system()))
.add_system_set(
SystemSet::on_enter(AppState::GameOver).with_system(setup_button.system()),