Esempio n. 1
0
 override public float Run()
 {
     if (animEngine != null)
     {
         return(animEngine.ActionAnimRun(this));
     }
     else
     {
         ACDebug.LogError("Could not create animation engine!");
         return(0f);
     }
 }
Esempio n. 2
0
        public override float Run()
        {
            if (method == AnimMethod.BlendShape && isPlayer && runtimeShapeObject == null)
            {
                LogWarning("Cannot BlendShape Player since cannot find Shapeable script on Player.");
            }

            if (animEngine != null)
            {
                return(animEngine.ActionAnimRun(this));
            }
            else
            {
                LogWarning("Could not create animation engine!");
                return(0f);
            }
        }