Esempio n. 1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        Potion potion = other.GetComponent <Potion>();

        if (potion && !potion.isEmpty)
        {
            m_fillPercent += potion.value;
            potion.Empty();
            SetSprites();
            GameController.instance.sounds.PlayValueIncrement();
        }
    }