Exemplo n.º 1
0
    public List <AnimationClipOverride> GetSubEnemyClips(string boss, int num, string type)
    {
        List <AnimationClipOverride> tmp = new List <AnimationClipOverride>();

        AnimationClipOverride clip = new AnimationClipOverride();

        clip.clipNamed = "idle";
        clip.findClip(boss, num, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "normalAttack";
        clip.findClip(boss, num, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act1";
        clip.findClip(boss, num, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act2";
        clip.findClip(boss, num, type);
        tmp.Add(clip);

        return(tmp);
    }
Exemplo n.º 2
0
    public List <AnimationClipOverride> GetEliteClips(int floor, string type)
    {
        List <AnimationClipOverride> tmp = new List <AnimationClipOverride>();

        AnimationClipOverride clip = new AnimationClipOverride();

        clip.clipNamed = "idle";
        clip.findClip(floor, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "normalAttack";
        clip.findClip(floor, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act1";
        clip.findClip(floor, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act2";
        clip.findClip(floor, type);
        tmp.Add(clip);

        if (floor % 20 == 1)
        {
            clip           = new AnimationClipOverride();
            clip.clipNamed = "act3";
            clip.findClip(floor, type);
            tmp.Add(clip);
        }

        return(tmp);
    }
Exemplo n.º 3
0
    public void Init(AnimationClipOverride clipOverride)
    {
        overrideController.runtimeAnimatorController = animator.runtimeAnimatorController;

        overrideController[clipOverride.clipNamed] = clipOverride.overrideWith;

        animator.runtimeAnimatorController = overrideController;
    }
Exemplo n.º 4
0
    public List <AnimationClipOverride> GetNormalEnemyClips(string shape, string type)
    {
        List <AnimationClipOverride> tmp = new List <AnimationClipOverride>();

        AnimationClipOverride clip = new AnimationClipOverride();

        clip.clipNamed = "idle";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "normalAttack";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act1";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act2";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act4";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act5";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act6";
        clip.findClip(shape, type);
        tmp.Add(clip);

        clip           = new AnimationClipOverride();
        clip.clipNamed = "act7";
        clip.findClip(shape, type);
        tmp.Add(clip);


        return(tmp);
    }