// Update is called once per frame void Expload() { coinCounter.CheckCoins(); Score.instance?.ChangeScore(11); GameObject exploadEffect = Instantiate(explosion, transform.position, Quaternion.identity); Destroy(exploadEffect, .5f); Destroy(gameObject); }