diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 13:20:50 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 13:20:50 +0100 |
commit | bc66e7195c80facca244f933b882011e5e81fa3c (patch) | |
tree | a9417c19a7f9cecb09130ac7becfbba059b1ec5b /game/player/PlayerSubScene.cpp | |
parent | 42cbef630ccaf3e841459d364edade1a3c72a525 (diff) |
coins use events
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r-- | game/player/PlayerSubScene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp index c1e5e2f..fff9287 100644 --- a/game/player/PlayerSubScene.cpp +++ b/game/player/PlayerSubScene.cpp @@ -3,6 +3,7 @@ #include "PlayerScript.h" #include "../Config.h" +#include "../coins/CoinScript.h" #include <crepe/api/Animator.h> #include <crepe/api/BoxCollider.h> @@ -150,4 +151,5 @@ PlayerSubScene::PlayerSubScene(Scene & scn) { }); player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false; player.add_component<BehaviorScript>().set_script<PlayerEndScript>().active = false; + player.add_component<BehaviorScript>().set_script<CoinScript>(); } |