diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 16:31:58 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 16:31:58 +0100 |
commit | abbfe5d06697b93de485dcfe975812befc018a00 (patch) | |
tree | 8b6b5c5d327e5eb3fb5855846f52d155c7364e2f /game/player/PlayerScript.cpp | |
parent | a764ef0f1f6b7c5d18155163d63db1a6dd47093a (diff) |
Moved EndGameScript to Player
Diffstat (limited to 'game/player/PlayerScript.cpp')
-rw-r--r-- | game/player/PlayerScript.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp index de53fc7..7f5d0c4 100644 --- a/game/player/PlayerScript.cpp +++ b/game/player/PlayerScript.cpp @@ -18,8 +18,7 @@ void PlayerScript::init() { bool PlayerScript::on_collision(const CollisionEvent & ev) { BehaviorScript & play_scr = this->get_components_by_name<BehaviorScript>("player").front(); - BehaviorScript & end_scr - = this->get_components_by_name<BehaviorScript>("end_game_script").front(); + BehaviorScript & end_scr = this->get_components_by_name<BehaviorScript>("player").back(); RefVector<Animator> animators = this->get_components_by_name<Animator>("player"); RefVector<ParticleEmitter> emitters = this->get_components_by_name<ParticleEmitter>("player"); |