Example #1
0
 public void Cleanup()
 {
     if (this.effecter != null)
     {
         this.effecter.Cleanup();
     }
     FullPool <PawnStatusEffecters.LiveEffecter> .Return(this);
 }
Example #2
0
 public void Cleanup()
 {
     if (effecter != null)
     {
         effecter.Cleanup();
     }
     FullPool <LiveEffecter> .Return(this);
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }