#include "StunImmunity.h" #include "DestroyableComponent.h" #include "ControllablePhysicsComponent.h" #include "eStateChangeType.h" void StunImmunity::OnStartup(Entity* self) { auto destroyableComponent = self->GetComponent(); if (destroyableComponent) { destroyableComponent->SetStatusImmunity( eStateChangeType::PUSH, false, false, true, true, false, false, false, false, true ); } auto controllablePhysicsComponent = self->GetComponent(); if (controllablePhysicsComponent) { controllablePhysicsComponent->SetStunImmunity( eStateChangeType::PUSH, self->GetObjectID(), true ); } }