- Home /
Question by
unity_KsnfZCRMJU7Ucw · Jun 26, 2021 at 11:49 AM ·
switch
Can You Add && To A Switch Statement.
switch (other.gameObject.tag) { case "BTN": case "BTN1": money.money++; panel.SetActive(true); break;
case "BTN2":
case "BTN3":
money.money++;
panel.SetActive(true);
break;
case "BTN4":
case "BTN5":
money.money++;
panel.SetActive(true);
break;
}
Comment
Your answer
Follow this Question
Related Questions
Switch to second camera which has all the GUI 3 Answers
Programming a Sword Swing Animation and Swapping weapons 1 Answer
Switching array and animation problem 0 Answers
Cycling through models on key press? 2 Answers
Toggle Switch 6 Answers