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