- Home /
Simultaneous pulling problem
Hello, I used this tutorial to transform survival shooter with oculus quest, but I have a problem! When I have the gun on the right hand left trigger index can shoot too, I also have the pad that shoot, no change in the priorities of vrtk, I think it comes from this script but I do not know how to prioritize shooting on the right controller only. Thanks for your help!` Here are the links https://www.youtube.com/watch?v=escwjnHFce0.
Player shooting.cs
#if !MOBILE_INPUT
// If the Fire1 button is being press and it's time to fire...
if((Input.GetButton ("Fire1") || controllerEvents.triggerPressed) && timer >= timeBetweenBullets && Time.timeScale != 0)
{
// ... shoot the gun.
Shoot ();
}
Comment
Thank you very much for your help, but I found ... Script based on input unity, so you have to change the corresponding entries to the touch.