Si uno de los operandos es de tipo bool y el otro no, el programa está mal formado.
If one of the operands is of type bool and the other is not, the program is ill-formed.
Una expresión constante convertida según el contexto de tipo bool es una expresión, convertida contextualmente a bool, donde la expresión convertida es una expresión constante y la secuencia de conversión contiene solamente las conversiones anteriores.
A contextually converted constant expression of type bool is an expression, contextually converted to bool, where the converted expression is a constant expression and the conversion sequence contains only the conversions above.
Así que la lista vacía puede tener el tipo int list, pero también puede tener el tipo bool list, y también puede tener el tipo (int int) list, y así por el estilo.
So the empty list can have type int list, but it can also have type bool list, and it can also have type int star int list, and so on.
Para resolver éste problema, declaramos una propiedad, celcius, de tipo Bool y establecemos su valor inicial en true.
To resolve this issue, declare a property, celcius, of type Bool and set its initial value to true.
inShoppingList de tipo Bool para indicar si el artículo está presente en la lista de compras
inShoppingList of type Bool to indicate if the item is present in the shopping list
Un UnityEvent que es invocado cuando el Toggle hace click. El evento puede enviar el estado actual como un argumento dinámico tipo bool. Detalles
A UnityEvent that is invoked when a user has clicked one of the options in the dropdown list. Details
Ambos usan un parámetro de tipo Bool y otro de tipo Int.
Both take a Bool and an Int parameter.