Unity 5: Learning C# by Developing Games by Greg Lukosek & John P. Doran & Chris Dickinson

Unity 5: Learning C# by Developing Games by Greg Lukosek & John P. Doran & Chris Dickinson

Author:Greg Lukosek & John P. Doran & Chris Dickinson [Lukosek, Greg]
Language: eng
Format: azw3, epub
Publisher: Packt Publishing
Published: 2016-08-31T04:00:00+00:00


You'll note that we used something named hotControl when we were checking for input. The reason we did this was that whenever a player holds down a mouse button, it becomes "hot." No other controls are allowed to respond to mouse events while some control is "hot."

Once the user releases their mouse, hotControl gets set to 0 to indicate that other controls can respond to user input, which will be useful when we implement our GUI system, as we don't want to draw something when we're clicking on our mouse button.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.