public void OnDiscard() { this.markToDestroy = false; this.battle = null; this._caster = null; this._target = null; this._data = null; }
public static BuffData GetBuffData(string id) { if (BUFF_DATA.TryGetValue(id, out BuffData data)) { return(data); } data = new BuffData(id); BUFF_DATA[id] = data; return(data); }