Ejemplo n.º 1
0
    // 播放一个复杂动作
    public AnimationEffect AddAnimation(int nID, AnimationParam param)
    {
        AnimationEffect newAnim = AnimationEffectFactory.Instance.CreateAnimation(nID);

        if (newAnim != null)
        {
            newAnim.param   = param;
            newAnim.showLog = showLog;

            if (newAnim.Begin())
            {
                mAnimationList.Add(newAnim);
            }
        }
        return(newAnim);
    }