Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Shooting ()
- {
- m_shootingtime.reset();
- if(gamepad2.b && m_shootingtime.milliseconds() > 500)
- {
- m_shootingbool = !m_shootingbool;
- m_shootingtime.reset();
- }
- if(m_shootingbool)
- {
- m_hardware.shootingMotor.setPower(1);
- }
- else
- {
- m_hardware.shootingMotor.setPower(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement