コード例 #1
0
    IEnumerator Blank()
    {
        step = ANISTEP.WAIT;

        img_2.GetComponent <Image>().color = Black;


        img_2.GetComponent <Image>().color = ON;
        yield return(new WaitForSeconds(0.1f));

        img_2.GetComponent <Image>().color = Black;
        yield return(new WaitForSeconds(0.1f));

        img_2.GetComponent <Image>().color = ON;
        yield return(new WaitForSeconds(0.1f));

        img_2.GetComponent <Image>().color = Black;
        yield return(new WaitForSeconds(0.1f));

        step = ANISTEP.REFADEIN;
    }
コード例 #2
0
    IEnumerator Fadein()
    {
        step = ANISTEP.WAIT;

        img_1.GetComponent <Image>().color = Black;
        img_2.GetComponent <Image>().color = Off;
        img_3.GetComponent <Image>().color = Off;

        yield return(new WaitForSeconds(5.0f));

        while (colorval < 1.0f)
        {
            colorval += Time.deltaTime;

            img_1.GetComponent <Image>().color = new Color(colorval, colorval, colorval, 1.0f);

            yield return(new WaitForSeconds(0.05f));
        }

        step = ANISTEP.BLANK;
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     step = ANISTEP.FADEIN;
 }