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
if (this.tag=="card1")
{
activecarda=1;
Debug.Log("activecarda "+activecarda);
}
if (this.tag=="card9")
{
activecardb=9;
Debug.Log("activecardb...
&& statement