void show() { graphic = GetComponent<MaskableGraphic>(); if(graphic) { gameObject.SetActive(true); setAlpha(0); graphic.CrossFadeAlpha(showAlpha,duration,false); } }
void show() { graphic = GetComponent<MaskableGraphic>(); if(graphic) { gameObject.SetActive(true); setAlpha(0); graphic.CrossFadeAlpha(showAlpha,duration,false); } }