Hi. I create a fadeout/fadein script, how i can check alpha level an my FadeScreen? if (???) {}
I want to load level after the end FadeIn script. (When alpha level = 255)
FadeIn script
`
void OnMouseDown() {
if( FadeIn ){
whiteScreen.CrossFadeAlpha (1.0f, FadeSpeed, true);
if( ??? ){
SceneManager.LoadScene("Loading");
}
}
}
`
I experienced this condition:
if (whiteScreen.color.a < 0.1f) {}
But this did not work
Thanks everyone for the tips!! GoodLuck with coding.