private bool ScanMatches() { bool match = false; if (current_rule != null) { foreach (GameObject game_block in blocks) { MatchFinder(new List <GameObject>(), 0, game_block, ref match); } if (current_rule.IDResult != 0 && match) { //Debug.Log("Play: Mach_SFX"); Sound.PlaySFX("Mach_SFX"); } else if (current_rule.IDResult == 0 && match) { //Debug.Log("Play: Burn_SFX"); Sound.PlaySFX("Burn_SFX"); } } return(match); }
// PUBLIC public void PressButton() { SetPressed(true); //Debug.Log("Play: Button_SFX"); //GameObject.FindGameObjectWithTag("Sound").GetComponent<SoundControler>().PlaySFX("Button_SFX"); Sound.PlaySFX("Button_SFX"); if (pressed) { SendEvent(); } //SetChildren(pressed); }