StatusCondition.SetChange C# (CSharp) Метод

SetChange() публичный Метод

public SetChange ( int index, Combatant, target ) : void
index int
target Combatant,
Результат void
    public void SetChange(int index, Combatant target)
    {
        this.count++;
        this.setAfter = this.time*1000;
        if(SimpleOperator.ADD.Equals(this.simpleOperator))
        {
            target.status[index].AddValue(this.change, false, false, true);
        }
        else if(SimpleOperator.SUB.Equals(this.simpleOperator))
        {
            target.status[index].AddValue(-this.change, false, false, true);
        }
        else if(SimpleOperator.SET.Equals(this.simpleOperator))
        {
            target.status[index].SetValue(this.change, false, false, true);
        }
        for(int i=0; i<target.status.Length; i++)
        {
            target.status[i].CheckBounds();
        }
    }