private void InvokeOnStateChanged() { for (int i = 0; i < onStateChange.GetPersistentEventCount(); i++) { ((MonoBehaviour)onStateChange.GetPersistentTarget(i)).SendMessage(onStateChange.GetPersistentMethodName(i), currentState); } }
private void InvokeOnStateChanged() { for (int i = 0; i < onStateChange.GetPersistentEventCount(); i++) { ((MonoBehaviour)onStateChange.GetPersistentTarget(i)).SendMessage(onStateChange.GetPersistentMethodName(i), currentState); } }