Esempio n. 1
0
    public void StopClip(int id)
    {
        excel_anim_list animList = excel_anim_list.Find(id);

        if (animList == null)
        {
            return;
        }
        StopClip(animList.name);
    }
Esempio n. 2
0
    public bool PlayPriorityAnimation(int id, AnimPriority priority, float speed = 1.0f, bool loop = false, bool reverse = false, float fadeLength = 0.15f, float time = 0.0f, bool async = true)
    {
        excel_anim_list animList = excel_anim_list.Find(id);

        if (animList == null)
        {
            Debug.LogError("未找到ID为" + id + "的动画表");
            return(false);
        }
        string path = mAnimPath + animList.name;

        return(PlayPriorityAnimation(path, priority, speed, loop, reverse, fadeLength, time, async));
    }