Beispiel #1
0
 public void ApplyAssignEffect()
 {
     BeforeAssign();
     if (Effect is DamageEffect damageEffect)
     {
     }
     if (Effect is AddStatusEffect addStatusEffect)
     {
         StatusAbilityEntity status = EntityFactory.CreateWithParent <StatusAbilityEntity>(Target, addStatusEffect.AddStatus);
         status.Caster = Creator;
         status.AddComponent <StatusLifeTimeComponent>();
         status.TryActivateAbility();
     }
     AfterAssign();
 }
Beispiel #2
0
 public void ApplyAssignEffect()
 {
     PreProcess();
     if (Effect is DamageEffect damageEffect)
     {
     }
     if (Effect is AddStatusEffect addStatusEffect)
     {
         Status        = Target.ReceiveStatus <StatusAbilityEntity>(addStatusEffect.AddStatus);
         Status.Caster = Creator;
         Status.AddComponent <StatusLifeTimeComponent>();
         Status.TryActivateAbility();
     }
     PostProcess();
 }