Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

&& statement

$
0
0
I'm looking for some help with the below code. The Debug shows the output fine for activecarda and activecardb but the problem is with the bottom section of the code, I cannot get it to show "matchfound". I tried using && statement instead of nesting if statements, same issue. any ideas what i'm doing wrong?


if (this.tag=="card1")
{
activecarda=1;
Debug.Log("activecarda "+activecarda);
}

if (this.tag=="card9")
{
activecardb=9;
Debug.Log("activecardb...

&& statement

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>