When i assign it doesnt make any action Why?
Public bool hungerstat_active;
Void test(bool activation)
{
if(activation==hungerstat_active)
{
stat.Healthstat++;
}
}
When i assign it doesnt make any action Why?
Public bool hungerstat_active;
Void test(bool activation)
{
if(activation==hungerstat_active)
{
stat.Healthstat++;
}
}
First thing I would do is add
Debug.Log(hungerstat_active + ", " + activation);
before you do the actual if statement, just to be sure that those values are the same.
next add another debug line inside the If statement, just to be sure that it is not activating and you cannot tell for some other reason.
As VoidVenom mentioned, there isn’t a lot of code here to go on.