|
|
|
|
|
|
Debug.LogException(new AssertionError(message: message, innerException: ex)); |
|
|
|
} |
|
|
|
|
|
|
|
static int checkRound = 0; |
|
|
|
|
|
|
|
if (enableDebug) { |
|
|
|
checkRound += 1; |
|
|
|
if (checkRound % 100000 == 0) { |
|
|
|
Debug.Log("Assertion called !!!!!!!!!!!!!!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ( enableDebug && !result() ) { |
|
|
|
throw new AssertionError(message != null ? message() : ""); |
|
|
|
} |
|
|
|