Exemplo n.º 1
0
 public override void OnDie()
 {
     foreach (BattleUnitModel target in BattleObjectManager.instance.GetAliveList())
     {
         Buf_OmegaRuby.DestroyBuf(target);
     }
 }
Exemplo n.º 2
0
 public override void OnRoundStart()
 {
     foreach (BattleUnitModel target in BattleObjectManager.instance.GetAliveList())
     {
         Buf_OmegaRuby.AddBuf(target);
     }
 }
Exemplo n.º 3
0
            public static void DestroyBuf(BattleUnitModel model)
            {
                List <BattleUnitBuf> activatedBufList = model.bufListDetail.GetActivatedBufList();
                Buf_OmegaRuby        buf = activatedBufList.Find((BattleUnitBuf x) => x is Buf_OmegaRuby) as Buf_OmegaRuby;
                bool flag = buf == null;

                if (!flag)
                {
                    buf.Destroy();
                }
            }
Exemplo n.º 4
0
            public static void AddBuf(BattleUnitModel model)
            {
                List <BattleUnitBuf> activatedBufList = model.bufListDetail.GetActivatedBufList();
                Buf_OmegaRuby        buf = activatedBufList.Find((BattleUnitBuf x) => x is Buf_OmegaRuby) as Buf_OmegaRuby;
                bool flag = buf == null;

                if (flag)
                {
                    buf       = new Buf_OmegaRuby(model);
                    buf.stack = 1;
                    model.bufListDetail.AddBuf(buf);
                }
                else
                {
                    buf.stack = 1;
                }
            }
Exemplo n.º 5
0
            public static int GetBuf(BattleUnitModel model)
            {
                List <BattleUnitBuf> activatedBufList = model.bufListDetail.GetActivatedBufList();
                Buf_OmegaRuby        buf = activatedBufList.Find((BattleUnitBuf x) => x is Buf_OmegaRuby) as Buf_OmegaRuby;
                bool flag = buf == null;
                int  result;

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