Play more animations onclick

Hi there,

I want to to play two animations at the same time when someone mouseclicks on something. Is it possible to this within the void OnMouseDown? This is what I have but it doesn’t work.

using UnityEngine;
using System.Collections;

public class LiftOmhoog : MonoBehaviour

{

    public Animator anim; 

    void OnMouseDown()

    {

        anim.SetTrigger("NaarBoven");
        anim.SetTrigger("LiftOmhoog");


    }
 
}

Thanks in advance for answering!

Cheers,

Jonah

Seems like you need control layers. This should do the trick.

Alternatively you could use blend trees