Question by
gss214 · Sep 12, 2015 at 07:21 PM ·
booleanif-statementsboolif
how do i say this
how d= o I say this:
var 1 += time.deltatime;
var 2 = false;
if (var> 0 and var2 = false) { // <<<< if var 1> 0 and var 2 is false, as I do this?
myCode;
}
Comment
Best Answer
Answer by hexagonius · Sep 12, 2015 at 09:20 PM
var one += Time.DeltaTime;
var two = false;
if(one > 0 && !two) {
YourMethod();
}
Your answer
Follow this Question
Related Questions
Get Time A Bool Has Been True 4 Answers
how to boolean global and trigger a command when two booleans are true C# 1 Answer
The bool activates and deactivates but the script in the if statement doesn´t work 1 Answer
How to turn turn off/on a collider with a boolean from another script 1 Answer
AudioSource in Update 1 Answer