Better Implementation of Timer

This commit is contained in:
Morph01
2024-08-16 10:36:32 +02:00
parent 91d492c2d8
commit 1662691b6e
2 changed files with 7 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#include <godot_cpp/classes/mesh_instance3d.hpp>
#include <godot_cpp/classes/node3d.hpp>
#include <godot_cpp/classes/ray_cast3d.hpp>
#include <godot_cpp/classes/timer.hpp>
namespace blitz {
class Bullet : public godot::Node3D {
@@ -22,6 +23,7 @@ class Bullet : public godot::Node3D {
godot::GPUParticles3D* m_Particles;
godot::RayCast3D* m_Ray;
godot::MeshInstance3D* m_Mesh;
godot::Timer* m_Timer;
void _on_timer_timeout();
};