Inspiaaa / UnityHFSM

A simple yet powerful class-based hierarchical finite state machine for Unity
MIT License
1.12k stars 124 forks source link

Fix Time.time access exception during deserialization #43

Closed Inspiaaa closed 6 months ago

Inspiaaa commented 6 months ago

If a State or State-derived class is serialized for use in the inspector, then everytime scripts are compiled it will throw an exception from the public Timer() field being automatically initialized, which causes an access to Time.time, which can't be access during deserialization.