Exemplo n.º 1
0
    void OnEffectComplete(TileEffect te)
    {
        this.effects.Remove(te);

        te.SetTile(null);
        te.OnComplete -= OnEffectComplete;
    }
Exemplo n.º 2
0
    public void AddEffect(TileEffect effect)
    {
        this.effects.Add(effect);

        effect.SetTile(this);
        effect.OnComplete += OnEffectComplete;
        effect.Instantiate(this.position, Quaternion.identity, null);
    }