Hi there,
So i wanted to make like if it was true already then set to false, however if it was false then set to true.
And im having problem because when i write it it reads the code together so if its true it sets to false but when its false it doesnt sets it to true ?
Here is my code
function AddingPoints()
{
var q = GetComponent(Player);
if(q.dirRight == true)
{
q.dirRight = false;
}
if(q.dirRight == false)
{
q.dirRight = true;
}
}
Thanks for helping !