Пример #1
0
    public void Collision()
    {
        if (sound != null)
        {
            if (SecurePlayerPrefs.GetInt("soundfx", 0) == 0)
            {
                Instantiate(sound, transform.position, transform.rotation);
            }
        }

        particleManager.SpawnParticle(transform.position, color);
        if (gameObject.tag == "Bomb")
        {
            particleManager.Bomb(new Vector3(transform.position.x, transform.position.y, 5));
        }
        gameObject.SetActive(false);
    }