void Update() { openCloseState.text = EMMotionManager.GetState("HedgehogOpenClose").ToString(); simpleState.text = EMMotionManager.GetState("HedgehogSimple").ToString(); if (EMMotionManager.GetState("HedgehogOpenClose") == EMBaseMotion.MotionState.Closing) { EMMotionManager.ResetSimpleMotion("HedgehogSimple"); } }