i dont know why its not working it supposible works for otehr people
using UnityEngine;
using System.Collections;
public class animationplaygunfire : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown("e"))
{
GetComponent<ak47fireing>.play(true);
}
}
}
ak47fireing is an animation