public override void execute(int frameRate, float delay)
 {
     if (!amClip || !obj)
     {
         return;
     }
     AMTween.PlayAnimation(obj, AMTween.Hash("delay", getWaitTime(frameRate, delay), "animation", amClip.name, "wrapmode", wrapMode, "crossfade", crossfade, "fadeLength", crossfadeTime));
 }
    private static bool parsePlayAnimation(JSONAction a)
    {
        Hashtable hash = new Hashtable();

        hash.Add("disable", true);
        hash.Add("delay", a.delay);
        if (a.strings.Length >= 1)
        {
            hash.Add("animation", a.strings[0]);
        }
        else
        {
            Debug.LogWarning("Animator: PlayAnimation missing 'animation' clip name.");
            return(false);
        }
        if (a.floats.Length >= 2)
        {
            hash.Add("wrapmode", (WrapMode)a.floats[0]);
            hash.Add("fadeLength", a.floats[1]);
        }
        else
        {
            Debug.LogWarning("Animator: PlayAnimation missing 'wrapmode' or 'fadeLength'.");
            return(false);
        }
        if (a.bools.Length >= 1)
        {
            hash.Add("crossfade", a.bools[0]);
        }
        else
        {
            Debug.LogWarning("Animator: PlayAnimation missing 'crossfade'.");
            return(false);
        }
        AMTween.PlayAnimation(getGO(a.go), hash);
        return(true);
    }