1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::catch::attributes::ObjectCountBuilder; pub struct Fruit { pub x_offset: f32, } impl Fruit { pub fn new(count: &mut ObjectCountBuilder) -> Self { count.record_fruit(); Self { x_offset: 0.0 } } }