aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r--game/player/PlayerSubScene.cpp2
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>();
}