During my learning C# process I’ve run into many stops
#suprise /jk
anyway I can’t seem to find my way out of this one.
What happens :
The player walks through a invisible cube, when he does it sets a bool trigger (it works fine)
Now when the player reaches the secound trigger, i need to check if the first one actually was triggered or if he missed something.
I imagined.
if player has triggered object 1
work object 2
check the screenshot for understanding
public GameObject firstCheckCube; // <--------- THIS IS THE FIRST CHECKPOINT it has the trigger on it called "myTrigger"
void OnTriggerEnter(Collider other)
{
// This is the statement I need help with, (if myTrigger = true then.....)
// if(firstCheckCube.
if(other.gameObject.tag == ("PushCubeControl"))
{
other.gameObject.SetActive(false);
audio.PlayOneShot(Activate);
Blockade.SetActive(false);
EndCube.SetActive(true);
Any suggestions is appriciated, also interested if you would use something else to setup triggers like this.
