コード例 #1
0
 public void RewindAPI()
 {
     if (EMMotionManager.GetState("HedgehogOpenClose") == EMBaseMotion.MotionState.Open)
     {
         EMMotionManager.RewindMotion("HedgehogSimple");
     }
 }
コード例 #2
0
    void Update()
    {
        openCloseState.text = EMMotionManager.GetState("HedgehogOpenClose").ToString();
        simpleState.text    = EMMotionManager.GetState("HedgehogSimple").ToString();

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