refactor: IT RUNS!

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-12-16 21:26:48 +01:00
parent 4e706f6c55
commit e3321c54fb
9 changed files with 84 additions and 52 deletions

View File

@@ -8,7 +8,7 @@ use crate::{
DefaultMaterial,
};
use bevy::{
app::{App, Plugin},
app::{App, Plugin, PostUpdate, PreUpdate},
asset::{AssetServer, Assets, RenderAssetUsages},
color::Color,
image::Image,
@@ -54,7 +54,8 @@ impl Plugin for StardustTextPlugin {
let (tx, rx) = crossbeam_channel::unbounded();
SPAWN_TEXT_SENDER.set(tx);
app.insert_resource(SpawnTextReader(rx));
todo!()
app.add_systems(PostUpdate, update_text);
app.add_systems(PreUpdate, spawn_text);
}
}