Esempio n. 1
0
        protected override void PopOut(params int[] ids)
        {
            int n = ids.Length;

            for (int i = 0; i < n;)
            {
                if (IsBuff(ids[i]))
                {
                    SkBuffInst.Unmount(this, (SkBuffInst buffInst) => buffInst.MatchID(ids[i])); i++;
                }
                else
                {
                    Debug.LogError("[SkPackablAttribs]Unsupport id to minus:" + ids[i]);      i += 2;
                }
            }
        }
Esempio n. 2
0
 public static void UnmountBuff(SkEntity target, SkBuffInst inst)
 {
     SkBuffInst.Unmount(target._attribs.pack as SkPackage, inst);
 }
Esempio n. 3
0
 public static void UnmountBuff(SkEntity target, int buffId)
 {
     //SkPackage pack = target._attribs.pack as SkPackage;
     SkBuffInst.Unmount(target._attribs.pack as SkPackage, it => it._buff._id == buffId);
 }