Hi;)
I don’t understand why the second part of this code dosn’t work…
If I press the left button of the mouse, the animation start, but the “(Input.GetMouseButton(1)” dosn’t work…
I need that with the same mouse key, start both the animazions. (Or with the right mouse button). Thank you in advance.
void OnMouseDown ()
{
if (Input.GetMouseButton(0)) {
ApriPortaDestra ();
audio.clip = Apertura;
audio.Play();
}
if (Input.GetMouseButton(1)) {
ChiudiPortaDestra ();
audio.clip = Apertura;
audio.Play();
}
}