Hello everyone,
I've figured out that when a method call another method, the prior "pauses" until the called one is done.
Here is an illustration :
In this exemple, the "step 2" thing is not printed : the failure of the called...
How can I make my method stop caring about the possible exception threw by void methods it called ?
I've figured out that when a method call another method, the prior "pauses" until the called one is done.
Here is an illustration :
Code (CSharp):
- void Start()
- {
- print("step 1 successful");
- SimulateAnError();
- print("step 2 successful");
- }
- public void SimulateAnError()
- {
- //the code stops here.
- }
How can I make my method stop caring about the possible exception threw by void methods it called ?