예제 #1
0
        public void ApplyEffect(Character target, EffectData effectData)
        {
            TickEffect tempEffect = Instantiate(GetTickEffectPrefab(effectData.effect), target.transform, false);

            tempEffect.duration      = effectData.duration;
            tempEffect.statsValue    = effectData.statsValue;
            tempEffect.target        = target;
            tempEffect.numberOfTicks = effectData.tickNumber;
            tempEffect.effectType    = effectData.effect;
        }