예제 #1
0
 // 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();
     }
 }
예제 #2
0
 // 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();
         }
     }
 }