Ejemplo n.º 1
0
    //Routine for Static Motion
    IEnumerator ssStaticMotionSelector(unitychanStaticMotion motion, float sTime, float remain)
    {
        anim.CrossFade(motion.ToString(), sTime);
        yield return(StartMotionCorotine(waitFuntion(remain)));

        anim.SetTrigger("WaitTrigger");
        currentMotionCorotine = null;
    }
Ejemplo n.º 2
0
 //Routine for Static Motion
 IEnumerator ssStaticMotionSelector(unitychanStaticMotion motion,float sTime,float remain)
 {
     anim.CrossFade(motion.ToString(), sTime);
     yield return StartMotionCorotine(waitFuntion(remain));
     anim.SetTrigger("WaitTrigger");
     currentMotionCorotine = null;
 }