public override void OnWaveStart()
 {
     foreach (BattleUnitModel target in BattleObjectManager.instance.GetAliveList())
     {
         Passive_16579036_buf.AddBuf(target, 5);
     }
 }
            public static void AddBuf(BattleUnitModel model, int add)
            {
                List <BattleUnitBuf> activatedBufList = model.bufListDetail.GetActivatedBufList();
                Passive_16579036_buf buf = activatedBufList.Find((BattleUnitBuf x) => x is Passive_16579036_buf) as Passive_16579036_buf;
                bool flag = buf == null;

                if (flag)
                {
                    buf = new Passive_16579036_buf(model);
                    buf.Add(add);
                    model.bufListDetail.AddBuf(buf);
                }
                else
                {
                    buf.Add(add);
                }
            }
            public static int GetBuf(BattleUnitModel model)
            {
                List <BattleUnitBuf> activatedBufList = model.bufListDetail.GetActivatedBufList();
                Passive_16579036_buf buf = activatedBufList.Find((BattleUnitBuf x) => x is Passive_16579036_buf) as Passive_16579036_buf;
                bool flag = buf == null;
                int  result;

                if (flag)
                {
                    result = 0;
                }
                else
                {
                    result = buf.stack;
                }
                return(result);
            }