Progress on Animation Queue Pipeline
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "IntegrationGameModeBase.h"
|
||||
#include "lpx-drvutil.hpp"
|
||||
#include "DebugPrint.h"
|
||||
#include "Tangible.h"
|
||||
#include "TangibleManager.h"
|
||||
#include "TangibleInterface.h"
|
||||
#include "CommonTypes.h"
|
||||
@@ -120,13 +121,9 @@ void AIntegrationGameModeBase::UpdateTangibles() {
|
||||
// Tick all the tangibles.
|
||||
if (EngineSeconds > NextRotateCube) {
|
||||
for (int i = 0; i < live.Num(); i++) {
|
||||
AActor* a = TangibleManager.GetTangible(live[i]);
|
||||
check(a != nullptr);
|
||||
bool hasInterface = a->GetClass()->ImplementsInterface(UTangibleInterface::StaticClass());
|
||||
if (hasInterface) {
|
||||
ITangibleInterface* iface = Cast<ITangibleInterface>(a);
|
||||
iface->Execute_TurnFromCXX(a);
|
||||
}
|
||||
UTangible *t = TangibleManager.GetTangible(live[i]);
|
||||
check(t != nullptr);
|
||||
ITangibleInterface::Execute_TurnFromCXX(t->Actor);
|
||||
}
|
||||
NextRotateCube += 0.5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user