void OnEffectComplete(TileEffect te) { this.effects.Remove(te); te.SetTile(null); te.OnComplete -= OnEffectComplete; }
public void AddEffect(TileEffect effect) { this.effects.Add(effect); effect.SetTile(this); effect.OnComplete += OnEffectComplete; effect.Instantiate(this.position, Quaternion.identity, null); }