i need my gun to shoot when i HOLD DOWN the LMB. i know the LMB is 0 and i know how to start animation…but how do i make the animation stop when i let go of the LMB
void Update() {
if (Input.GetMouseButtonUp(0))
animation.Stop();
}
See:
i need my gun to shoot when i HOLD DOWN the LMB. i know the LMB is 0 and i know how to start animation…but how do i make the animation stop when i let go of the LMB
void Update() {
if (Input.GetMouseButtonUp(0))
animation.Stop();
}
See: