I use collider to stop an object and triggering them using tags.
Before I tried to use booleans, result is the same. I cant change two objects simultaneously/
Where is a problem?
void Update () {
trigger = numb%2==0;
if(Input.GetButtonDown("Jump") && trigger){
numb++;
collider1.tag = "Untagged";
collider2.tag = "Obstacle";
}
if(Input.GetButtonDown("Jump") && !trigger){
numb++;
collider1.tag = "Obstacle";
collider2.tag = "Untagged";
}
}