public void RewindAPI()
 {
     if (EMMotionManager.GetState("HedgehogOpenClose") == EMBaseMotion.MotionState.Open)
     {
         EMMotionManager.RewindMotion("HedgehogSimple");
     }
 }
    void Update()
    {
        openCloseState.text = EMMotionManager.GetState("HedgehogOpenClose").ToString();
        simpleState.text    = EMMotionManager.GetState("HedgehogSimple").ToString();

        if (EMMotionManager.GetState("HedgehogOpenClose") == EMBaseMotion.MotionState.Closing)
        {
            EMMotionManager.ResetSimpleMotion("HedgehogSimple");
        }
    }