예제 #1
0
void URPGEffectBase::Initialize()
{
	IsEffectActive = false;
	EffectsRemoved = 0;
	if(AffectedTarget)
	{
		UWorld* world = GetCurrentWorld(AffectedTarget);
		if(CurrentWorld)
		{
			//OnEffectAppiled_Implementation();
			OnEffectAppiled();
			IsEffectActive = true;
		}
	}
}
예제 #2
0
bool URPGEffectPeriodic::Initialize()
{
	Super::Initialize();
	if (Target)
	{
		TotalDuration = PeriodLenght * PeriodsCount;

		IsEffectActive = true;

		OnEffectActivation.Broadcast(this->GetClass(), IsEffectActive);
		OnEffectAppiled();

		OnEffectInitialized();

		OnEffectPostInitialized();
		return true;
	}
	return false;
}