23 lines
353 B
C#
23 lines
353 B
C#
using UnityEngine;
|
|
|
|
public class RightHandController : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private Transform rightHandPoint;
|
|
|
|
private Animator _animator;
|
|
|
|
private void Start()
|
|
{
|
|
_animator = rightHandPoint.GetComponent<Animator>();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetMouseButtonDown(1))
|
|
{
|
|
_animator.SetInteger("ThrowRod", 0);
|
|
}
|
|
}
|
|
}
|