// Update is called once per frame void Update() { //Don't display the submit button if there are no orders. if (GetNumSelectedWidgets() > 0) { Submit.Enable(); } else { Submit.Disable(); } }
// Update is called once per frame void Update() { if (use_submit) { //Don't display the submit button if there are no orders. if (answers.Length > 0 && GetNumSelectedWidgets() >= answers.Length && use_submit == true) { Submit.Enable(); } else { Submit.Disable(); } } }