using System.Collections; using System.Collections.Generic; using UnityEngine; public class LMG_Bullets : MonoBehaviour { private Animator anim; private void Awake() { anim = GetComponent(); } // Update is called once per frame void Update() { if (Player.Instance.hasFiredWeapon) { anim.Play("LMG_BulletMovement"); } } }