Exemple #1
0
    protected override void UseSpecial()
    {
        base.UseSpecial();

        GameObject snd = Instantiate <GameObject>(soundPrefab);

        snd.GetComponent <SFXScript>().sfx = specialSFX;

        GemGenerator gg = FindObjectOfType <GemGenerator>();

        if (gg == null)
        {
            return;
        }
        gg.CloneGems();
    }