![]() |
Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Logs an error message to the Console if condition is not true
and returns true
if condition was true
or false
if it was not.
float Divide(float dividend, float divisor) { return Critical.Ensure(divisor != 0f) ? dividend / divisor : 0f; }
condition | Condition you expect to be true . |
context | Object to which the assertion applies. |
true
if condition was true
; otherwise, false
.