Orb.DestroyOrb C# (CSharp) 메소드

DestroyOrb() 개인적인 메소드

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