Example #1
0
    private IEnumerator ExplosionInternal()
    {
        _textScroller.SendMessage("DisallowLoad");
        _animator.enabled = true;
        _audio.PlayOneShot(_explosion, 0.2f);

        yield return(new WaitForSeconds(2.0f));

        _audio.PlayOneShot(_laserOff);
        _laserBeam.SetActive(false);

        yield return(new WaitForSeconds(0.2f));

        _animator.enabled = false;
        _textScroller.SendMessage("AllowLoad");
    }