Okay, so I'm making a Main Menu using 2D GUIs in a 3D Terrain to make it look more interesting like this one (but i don't know if the GUIs like the textboxes there are 2D. but i guess they are 2D LOL). Now I use iTween to navigate throughout the map because I placed the parts of the menu in the different places on the map (like the Start Game GUI will show in the mountain, the Option GUI in the river, etc.)
Now the problem is I'm having a hard time to combine 2D and 3D at the same time. I know that 2D GUIs will stick infront of your screen that's why I was trying to make them fade in when I need them and fade them out if I don't need them using colliders. I used a linking variable to validate if the camera(w/ a collider) entered a collider(w/ trigger) to know if the specified GUI will fade in. But somehow it doesn't work.
Here's my Trigger Collider Script:
As you can see I made a variable named fadeVar to determine if the gameObject with a collider entered the trigger. Then made a function to retrieve the value. Then here is my fade in/out script:
Okay so I had that fade in/out script in the internet and I was just tweaking it to make some changes to suit what I was supposed to be needing for my game. I tried to link the trigger script(I really don't know if it works but I just had my ideas on linking from the 3DPlatformTutorial) to get the validation if the object entered the trigger. The fade in/out effect was originally placed in the start function but I saw that if you would place it in the Start() then it will automatically fade in and won't validate the boolTest. I tried to put it in the Update() so that it will check the boolTest as soon as it touches the trigger but I'm having an error like: "Update function can't be coroutine".
Sorry for the very long post. I just want to give you all the things I know about my problem. I'm just starting to learn game scripting so forgive me. XD