コード例 #1
0
ファイル: Lightbulb.cs プロジェクト: maxmmitchell/dpaddungeon
    IEnumerator Idle()
    {
        GetComponent <Collider2D>().enabled = true;
        launcher.delay = idleDelay;
        launcher.speed = idleSpeed;
        launcher.time  = idleTime;

        StartCoroutine(launcher.LaunchRandom());
        yield return(new WaitForSeconds(idleTime));

        GetComponent <Animator>().SetBool("Boil", true);
        yield return(new WaitForSeconds(boilTime));

        GetComponent <Animator>().SetBool("Boil", false);
    }