Unity3d-Finite-State-Machine
Unity3d-Finite-State-Machine copied to clipboard
When the Component that StateMachine bind to has be destroyed, it will output error.
There only have stateMachineList.Add(fsm)
, but don't have stateMachineList.Remove(fsm)
when component has be destroyed.
It will throw a NullReference error