示例#1
0
 public override void EffectStat()
 {
     if (EffectedStat != null)
     {
         EffectedStat.AddModifier(modifier);
     }
 }
示例#2
0
    protected override void OnUpdate()
    {
        if (EffectedStat == null)
        {
            return;
        }

        Debug.Log(EffectedStat);

        EffectedStat.RemoveModifier(modifier);
        EffectedStat.AddModifier(modifier = new StatModifier(Value * multiplyer, StatModType.Flat, EffectedStatType, this));

        Debug.Log(EffectedStat.Value);
    }
示例#3
0
 Buff(EffectedStat EffectedStat, int Power)
 {
     this.EffectedStat = EffectedStat;
     this.Power        = Power;
 }