void CubeOnTable() //if the cubes drop on the ground, bring it back to the table surface { for (int i = 0; i < task.activeNum; i++) { if (dict[i].oriObject.transform.position.y < surface.transform.position.y) { dict[i].oriObject.transform.position = task.InitPosition(); } } }
void CubeOnTable() //if the cubes drop on the ground, bring it back to the table surface { if (task.taskNumber_correct < 5) { for (int i = 0; i < task.activeNum; i++) { //k = task.matNum[i] - 1; if (dict[i].oriObject.transform.position.y < surface.transform.position.y) { dict[i].oriObject.transform.position = task.InitPosition(); } } } }