support cutscene camera
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{keys::KeyCollected, movables::TriggerMovableEvent};
|
||||
use crate::{cutscene::StartCutscene, keys::KeyCollected, movables::TriggerMovableEvent};
|
||||
use bevy::{prelude::*, utils::hashbrown::HashSet};
|
||||
|
||||
#[derive(Resource)]
|
||||
@@ -20,6 +20,7 @@ fn on_key(
|
||||
) {
|
||||
if matches!(*state, GatesState::Init) {
|
||||
*state = GatesState::GateOpen1;
|
||||
commands.trigger(StartCutscene("fence_01".to_string()));
|
||||
|
||||
//TODO: put into a sound effects system
|
||||
commands.spawn((
|
||||
|
||||
Reference in New Issue
Block a user