Beispiel #1
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);
        }
Beispiel #2
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);
        }