/// <summary> /// Init class method. /// </summary> /// <returns>void</returns> private void Init() { // get audio component reference. audio = GetComponent <AudioSource>(); // get button wrapper class component reference from parent. buttonWrapper = GetComponentInParent <MainMenuButtonWrapper>(); // get animation component reference. animation = GetComponent <Animation>(); }