public void Cleanup() { if (this.effecter != null) { this.effecter.Cleanup(); } FullPool <PawnStatusEffecters.LiveEffecter> .Return(this); }
public void Cleanup() { if (effecter != null) { effecter.Cleanup(); } FullPool <LiveEffecter> .Return(this); }
private void AddOrMaintain(EffecterDef def) { for (int i = 0; i < this.pairs.Count; i++) { if (this.pairs[i].def == def) { this.pairs[i].Maintain(); return; } } PawnStatusEffecters.LiveEffecter liveEffecter = FullPool <PawnStatusEffecters.LiveEffecter> .Get(); liveEffecter.def = def; liveEffecter.Maintain(); this.pairs.Add(liveEffecter); }
private void AddOrMaintain(EffecterDef def) { for (int i = 0; i < pairs.Count; i++) { if (pairs[i].def == def) { pairs[i].Maintain(); return; } } LiveEffecter liveEffecter = FullPool <LiveEffecter> .Get(); liveEffecter.def = def; liveEffecter.Maintain(); pairs.Add(liveEffecter); }