this does nothing

This commit is contained in:
Aaron Kimbre
2023-01-07 03:21:42 -06:00
parent bb20aa7f86
commit 8b0f374ab4
2 changed files with 5 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ void JetPackBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bit_st
}
auto controllablePhysicsComponent = entity->GetComponent<ControllablePhysicsComponent>();
if (controllablePhysicsComponent) controllablePhysicsComponent->Ser
if (controllablePhysicsComponent) controllablePhysicsComponent->SetJetpackFlying(true);
}
void JetPackBehavior::UnCast(BehaviorContext* context, BehaviorBranchContext branch) {
@@ -29,6 +29,9 @@ void JetPackBehavior::UnCast(BehaviorContext* context, BehaviorBranchContext bra
auto* character = entity->GetCharacter();
if (character) character->SetIsFlying(false);
}
auto controllablePhysicsComponent = entity->GetComponent<ControllablePhysicsComponent>();
if (controllablePhysicsComponent) controllablePhysicsComponent->SetJetpackFlying(false);
}
void JetPackBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bit_stream, const BehaviorBranchContext branch) {