Пример #1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.tag == "Player")
        {
            if (Settings.Vibration) //vibrate if setting is on
            {
                Handheld.Vibrate();
            }

            manager.decreasePlayerOpacity();
            GameTracker.GotADebuff();
        }
    }
Пример #2
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.tag == "Player")
        {
            if (Settings.Vibration) //vibrate if setting is on
            {
                Handheld.Vibrate();
            }

            GameTracker.GotADebuff();
            manager.increaseBlackLevel();
        }
    }