Exemplo n.º 1
0
 public static Buff Create(int kid, float remainTime)
 {
     Buff buff = new Buff();
     buff.Uid = Guid.NewGuid().ToString();
     buff.Data = BuffDataManager.Instance.GetData(kid);
     buff.RemainTime = remainTime;
     return buff;
 }
Exemplo n.º 2
0
 public void AddBuff(Buff buff)
 {
     if(!buffDic.ContainsKey(buff.Data.Kid))
     {
         buffDic.Add(buff.Data.Kid, buff);
     }
 }