IEnumerator FadeinPanel6() { while (a6 > 0) { Chara6.GetComponent <Image>().color -= new Color(0, 0, 0, 0.01f); a6 -= 0.01f; yield return(null); } }
IEnumerator FadeoutPanel6() { while (a6 < 1) { Chara6.GetComponent <Image>().color += new Color(0, 0, 0, 0.01f); a6 += 0.01f; yield return(null); } }