Beispiel #1
0
    // Start is called before the first frame update
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player") && !_isPickedUp)
        {
            _isPickedUp = true;
            _gameMaster.AddSoulPoints(Points);

            Destroy(gameObject);
        }
    }