24 lines
480 B
C#
24 lines
480 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CrossbowAnimation : MonoBehaviour
|
|
{
|
|
private Animator anim;
|
|
[SerializeField] private string loadBoltSound = "RepeatingBow_Draw";
|
|
|
|
private void OnEnable()
|
|
{
|
|
anim = GetComponent<Animator>();
|
|
}
|
|
|
|
public void FireBow()
|
|
{
|
|
anim.Play("Loose");
|
|
}
|
|
public void PlayDrawSound()
|
|
{
|
|
AudioManager.Instance.playSound(loadBoltSound);
|
|
}
|
|
}
|