diff --git a/src/states.rs b/src/states.rs index e7ab6fe..bd56bb6 100644 --- a/src/states.rs +++ b/src/states.rs @@ -2,7 +2,6 @@ use crate::prelude::*; use anyhow::Result; use assetpath::AssetPath; use ecs::*; - use std::any::Any; use std::collections::HashMap; @@ -118,6 +117,7 @@ impl<'a, T: TopLevelGui + 'static> From for CreationType<'a> { } /// Collection and handler for your UI (basically a state machine) +#[derive(Resource)] pub struct States { states: HashMap>, current_state: Arc>>>,