Hi Chris,
I need to turn off the AC to call the mini game and turn on back the AC. It has no problems.
However, it is a sharp cut and seems odd.
So I make a fade in by action before turn off the AC. It works. But for the fade out part, I have no idea to do it by script. Any suggestion? Thanks a lot.
Comments
I'm not sure if you're asking for a fade in or out before or after you've turning on/off AC. Which step exactly are you looking for help with?
You could do it with a UI animation. A UI Canvas with a full-screen black Image could have it's alpha colour channel animated to do a fade in or out. You can then just play back the animation by changing an Animator parameter value through script.