Example #1
0
    private IEnumerator ExecuteBlockEffect(BrickEffect effect, BallController ballController)
    {
        // TODO Update UI (show icon for the effect)

        yield return(effect.Apply(ballController));

        // TODO Update UI (remove icon for the effect)
    }
Example #2
0
    // Use this for initialization
    public virtual void Start()
    {
        if (activeList == null)
        {
            activeList = new List <Brick>();
        }

        activeList.Add(this);
        m_hp = m_maxHp;

        m_coll   = GetComponent <Collider2D>();
        m_effect = GetComponent <BrickEffect>();
    }