use bevy::prelude::*; /// A component that represents a script. #[derive(Component)] pub struct Script { pub script: Handle, } impl Script { /// Create a new script component from a handle to a [Script] obtained using [AssetServer]. pub fn new(script: Handle) -> Self { Self { script } } }