c#


Stop detecting Input in Unity?


How can I stop detecting input from the user in Unity? I want to achieve the following: "do not detect Input.GetMouseButtonDown" In C#?
You can't just "turn off" input from the Input class Unity provides. Instead, at where you handle input, add an if statement.
Eg:
void Update() {
if (gameState != GameState.PAUSED) {
if (Input.getMouseButtonDown(0)) {
Debug.Log("Handle click!");
}
}
}

Related Links

C# Get all items from a database row
how to sort money into its separate notes?
Can't Code in C# on Xamarin Studio
C#- Place Picturebox on another Picturebox with real image coordinates issues
Debugging is not working properly in visual studio on my laptop
Save File And Over-Write If Exists [duplicate]
Check if JSON response field is null
Method not found error importing custom SSIS components into VS 2015 [duplicate]
HDInsight emulator - How to run locally a MapReduce job based on C# executables
Handle a string from a Dll in C#
Visual studio 2017 ASP.NET core MVC template application cannot add new packages
Best way to write byte[] into binary file
Json.NET custom deserialize to multiple properties using a JsonConverter [duplicate]
Traditional console app referencing NetStandard project throws FileNotFoundException
How to check multiple check boxes when Row_Header mouse click event on datagrid view?
Access to XML prefixes in WCF

Categories

HOME
macros
sql-server-2014
packet
formatting
casting
esxi
css-selectors
angularjs-ng-repeat
angular-universal
suitecrm
dynamics-crm-2011
osclass
solidity
fine-uploader
openam
ofbiz
audio-streaming
autologin
ampscript
smali
tcpdf
functional-dependencies
aws-certificate-manager
jopendocument
cloudformation
uibarbuttonitem
jbossfuse
key-bindings
log4net-configuration
node-soap
microstrategy
restler
asp.net-webhooks
gstreamer-1.0
console.readline
lex
autodesk-data-management
risc
nao-robot
pyopenssl
riemann
htop
totalview
jtextarea
critical-section
was
timefield
toggleclass
mongodb-3.3
deck.js
geokit
recurring
pyshark
web-optimization
markerspiderfier
google-finance-api
wiql
jts
syncano
web-standards
tinymce-plugins
screen-lock
veeam
numerical-recipes
api-eveonline
behance-api
django-tests
winrun4j
.net-reflector
codio
vbaccelerator
infomaker
qgraphicsscene
magicsuggest
idoc
derived-class
advanceddatagrid
discussion-board
azure-appfabric
xslt-grouping
glassfish-embedded
coderush-xpress
time-management
djangoappengine
opengl-to-opengles
ffdshow
wtsapi32

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App