bevy_tweening 0.15.0

Tweening animation plugin for the Bevy game engine
Documentation
1
2
3
4
5
6
7
8
9
#![allow(unused)]

use bevy::prelude::*;

pub fn close_on_esc(mut ev_app_exit: MessageWriter<AppExit>, input: Res<ButtonInput<KeyCode>>) {
    if input.just_pressed(KeyCode::Escape) {
        ev_app_exit.write(AppExit::Success);
    }
}