示例#1
0
 private void SetupViewFromContent(BuffView view, BuffContent content)
 {
     view.Setup(content.Name,
                content.Duration,
                content.Sprite,
                content.Color,
                content.Description);
 }
示例#2
0
 public void RemoveBuff(string affectName)
 {
     if (CheckIsBuffInList(affectName))
     {
         // 永久型Buff移除效果觸發於此
         BuffContent memory = GetBuffMemory(affectName);
         if (memory.isUnlimited)
         {
             memory.removeEvent.Invoke();
         }
         RemoveMemory(affectName);
     }
 }
示例#3
0
 private void SetBuffMemory(string name, BuffContent buffMemory)
 {
     buffList.TryAdd(name, buffMemory);
 }