private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.name == ObjectsDescription.Player.ToString()) { Destroy(gameObject); levelControllerClass.CoinAcquired(coinValue, coinType); vfxControllerClass.InitiateRippleEffect(transform.position); } }