25 lines
518 B
C++
25 lines
518 B
C++
#pragma once
|
|
|
|
#include "break_utopia/macros.h"
|
|
#include "scene/3d/physics/character_body_3d.h"
|
|
#include "scene/animation/animation_player.h"
|
|
|
|
class CopBot : public CharacterBody3D {
|
|
GDCLASS(CopBot, CharacterBody3D);
|
|
static void _bind_methods();
|
|
void ready();
|
|
void process();
|
|
void physics_process();
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
|
|
private:
|
|
float speed{ 3.f };
|
|
bool animating{ false };
|
|
AnimationPlayer *anim{ nullptr };
|
|
|
|
public:
|
|
GET_SET_FNS(float, speed);
|
|
GET_SET_FNS(AnimationPlayer *, anim);
|
|
};
|