public void ButtonClicked() { if (!used) { used = true; foreach (GameObject obj in targets) { BlockScript bs = obj.GetComponent <BlockScript>(); bs.DoButtonLogic(); } } }
public void ButtonClicked() { if (!used) { used = true; foreach (GameObject obj in targets) { BlockScript bs = obj.GetComponent <BlockScript>(); bs.DoButtonLogic(); } } }