Example #1
0
        private void OnTriggerEnter2D(Collider2D other)
        {
            var player = other.GetComponent <PlayerController>();

            if (player == null)
            {
                return;
            }

            player.collectedShards += 1;
            _soundEffectsManager.PlayPlayerPickup();
            Destroy(parentGO);
        }