Orb.DestroyOrb C# (CSharp) Method

DestroyOrb() private method

private DestroyOrb ( ) : IEnumerator
return IEnumerator
    IEnumerator DestroyOrb()
    {
        transform.GetChild(0).gameObject.SetActive(false);
        GetComponent<ParticleSystem>().Stop();
        yield return new WaitForSeconds(GetComponent<AudioSource> ().clip.length);
        Destroy(this.gameObject);
    }