Esempio n. 1
0
    private void DestroySqure()
    {
        Destroy(gameObject);
        gameState.DestroySquare();
        var explosion = Instantiate(destroyVFX, gameObject.transform.position, gameObject.transform.rotation);

        Destroy(explosion, 2f);
        powerUps.CreatePowerUp(gameObject.transform.position, gameObject.transform.rotation);
    }