2022-06-06 20:59:51 -04:00
|
|
|
#include "Coin/CoinNotCollected.h"
|
2022-05-24 23:17:16 -04:00
|
|
|
|
|
|
|
using namespace godot;
|
|
|
|
|
|
|
|
void CoinNotCollected::_register_methods()
|
|
|
|
{
|
|
|
|
register_method("_state_enter", &CoinNotCollected::_state_enter);
|
|
|
|
register_method("_state_exit", &CoinNotCollected::_state_exit);
|
|
|
|
register_method("_physics_process", &CoinNotCollected::_physics_process);
|
|
|
|
}
|
|
|
|
|
|
|
|
CoinNotCollected::CoinNotCollected()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CoinNotCollected::~CoinNotCollected()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CoinNotCollected::_init()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void CoinNotCollected::_state_enter()
|
|
|
|
{
|
|
|
|
animated_sprite = get_parent()->get_node<AnimatedSprite>("AnimatedSprite");
|
2022-06-06 20:59:51 -04:00
|
|
|
animated_sprite->set_animation("spin");
|
|
|
|
animated_sprite->play();
|
2022-05-24 23:17:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void CoinNotCollected::_state_exit()
|
|
|
|
{
|
2022-06-06 20:59:51 -04:00
|
|
|
|
2022-05-24 23:17:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void CoinNotCollected::_physics_process(float delta)
|
|
|
|
{
|
2022-06-06 20:59:51 -04:00
|
|
|
|
2022-05-24 23:17:16 -04:00
|
|
|
}
|
2022-06-06 20:59:51 -04:00
|
|
|
|