Nevermind, i literally put if (my code) and it worked...
C# Script question
Hi! I am trying to learn C#, and i wanted to know how to make an "IF" in C#. I have a script that needs to find a object with a custom tag and then make some things, and i wanted to know how can i make an "IF" on that.
Like, "If this game object found another game object but with the tag example, then". How do i do that in C#?
for future reference, you should use google before asking on here. Typing "how to make an if statement in C#" into google will yield the exact results you're looking for.
lmao and im only just now realizing. top memes here
Follow this Question
Related Questions
How do you make your player jump in the Roll-a-Ball tutorial series? 0 Answers
cursor disappears in GameOver scene 0 Answers
Finding the max Y position value in a list of game objects and assigning it to a variable? 0 Answers
What is wrong with my code...watched an unity tutorial and I keep forgetting everything! 1 Answer
error CS0119: I declared the variable, but it is saying I need to declare it. 1 Answer