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