public void Remove(int pos, int id) { ArenaEffect eff = effects[pos]; for (int i = 0; i < 3; i++) { if (eff.amt == 0) { return; } if (eff.id[i] == id) { for (int j = i; j < 2; j++) { eff.text[j] = eff.text[j + 1]; eff.id[j] = eff.id[j + 1]; } eff.amt--; return; } if (i == eff.amt - 1) { return; } } }
public void Add(int pos, string name, int id) { ArenaEffect eff = effects[pos]; eff.text[eff.amt] = name; eff.id[eff.amt] = id; eff.amt++; }