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