Example #1
0
void ANimModPlayerState::UpdateTeamColors()
{
	AController* OwnerController = Cast<AController>(GetOwner());
	if (OwnerController != NULL)
	{
		ANimModCharacter* NimModCharacter = Cast<ANimModCharacter>(OwnerController->GetCharacter());
		if (NimModCharacter != NULL)
		{
			NimModCharacter->UpdateTeamColorsAllMIDs();
		}
	}
}
Example #2
0
void ALPlayerState::UpdateTeamColors()
{
	AController* OwnerController = Cast<AController>(GetOwner());
	if (OwnerController != NULL)
	{
		ALabyrinthCharacter* LCharacter = Cast<ALabyrinthCharacter>(OwnerController->GetCharacter());
		if (LCharacter != NULL)
		{
			// Trigger the color update...
			//LCharacter->UpdateTeamColorsAllMIDs();
		}
	}
}