animator.Play("state name) doesn't work on IL2CPP build

when called via reflection

Probably this: https://docs.unity3d.com/Manual/ManagedCodeStripping.html

calling SetTrigger("trigname") via reflection works though