snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.59k stars 291 forks source link

Invoke Method Null Check #993

Open breadnone opened 3 years ago

breadnone commented 3 years ago

Description

No null check for targetComponent in InvokeMethod

What is the current behavior?

The default behavior of InvokeMethod is when we first add the command then assign an object, the targetComponent would be blank by default and Unity will throw ArgumentException error if targetComponent was left unassigned.

Important Notes

Other information