- Home /
Question by
JoelStrawbridge · Jul 29, 2012 at 11:36 PM ·
c#mainmenu
How do I load the Main Menu when all eneimes are dead? (c#)
Every time I try
if ( GameObject.FindGameObjectWithTag ("Evil") = null ) { Application.LoadLevel (0); }
It just goes straight back to the Main Menu as soon as the scene loads.
Any Suggestions?
Comment
yh use = when you want to change something so
var number : int;
function Update(){
number = 2; }
this will change the number to 2, however if you want to check if number is 2 then you must use == which basically means (it is equal to)
Your answer
![](https://koobas.hobune.stream/wayback/20220613074904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
how to construct all arrays (classes) with default constructor (not possible) 2 Answers
Convert a Java open source project to Unity C#? 1 Answer
MirrorReflection Portals 0 Answers