Summary:
When starting any of the scenes where the Paddle (I called it Player) is supposed to move along the X axis it does not. Neither using my in-built laptop touch screen nor the USB Mouse actions do not change the position of the Paddle/Player. I am able to launch the ball, however, I am not able to move the Paddle/Player itself.
Additional info:
- Using Unity 5.4.1.f1 (I have been using it since the very beginning of the course and was able to overcome any minor issues or cross-version differences that occured during the course)
- Using Visual Studio 2015
Changes introduced to the code:
- prior to going through lecture #87, #88, #89 - fixed a bug which prevented Players from winning rounds after previously using them (losing did not 0 the breakableCount - fixed it by introducing changes to Lose Collider script:
FindObjectOfType(); to void start
Brick.breakableCount = 0; to void OnTriggerEnter2D
tested the changes, they worked fine. I was quite proud to fix my first bug and doing that totally by myself without access to internet at the time. - went through the lectures #87, #88, #89. Introduced the code that initiated Crack and Boing sounds as shown on the video. The problems started on Automated Play Testing when I figured that I can no longer move my Player/Paddle.
- tried to go back to the state from before fixing (deleted the introduced code - it did not help so I reintroduced it)
- tried to get rid off the Automated testing script and audio scripts - did not help as well - the Paddle/Player did not move
Repro Steps:
- Introduce fix to the issue mentioned above by placing
FindObjectOfType(); to void start
Brick.breakableCount = 0; to void OnTriggerEnter2D in Lose Collider script. - Launch Block Breaker state from lecture #89.
- Proceed to Scene 01 and try to move the Paddle/Player with your mouse/touch screen.
- Observe the issue.
Observed Results:
The Paddle/Player brick does not move along the X axis accordingly to the X axis position of the mouse.
Expected Results:
The Paddle/Player brick should move along the X axis accordingly to the X axis position of the mouse.
My current state of scripts:
- Lose Collider: http://pastebin.com/7UR2bxR3
- Ball: http://pastebin.com/uBv9szfB
- Player Controller (my name for the Paddle script): http://pastebin.com/HuMMP8bM
- Brick: http://pastebin.com/y09ca95V
Please help I would really like to move on with the course as I really like it so far.
Best regards