Tengo un problema con una animación de un hacha, que quiero que al hacer click izquierdo se reproduzca la animación de "Cortar", no me sale ningún error en el siguiente script, pero aun así no me lo reproduce:
using UnityEngine;
using System.Collections;
public class talar : MonoBehaviour {
public Animation Animacion;
// Use this for initialization
public void Start () {
{
Animacion = gameObject.GetComponent<Animation> ();
}
}
// Update is called once per frame
public void Update () {
if(Input.GetMouseButtonDown()) {
Animacion.Play("hachazo");
}
}
}