feat: add Activateable in Lightkeeper
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include <components/Activatable.h>
|
||||
|
||||
void Activatable::Activate(GameObject& instigator)
|
||||
{
|
||||
if (!isEnabled() || IsBeingDestroyed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
OnActivate(instigator);
|
||||
OnActivated.Invoke(instigator);
|
||||
}
|
||||
Reference in New Issue
Block a user