コード例 #1
0
 void OnDestroy()
 {
     NGUIHelper.RemoveClickEventListener(playButton, OnButtonPlay);
     NGUIHelper.RemoveClickEventListener(demoButton, OnButtonDemo);
     EventManager.Highlight         -= OnHighlightOn;
     EventManager.NoHighlight       -= OnHighlightOff;
     EventManager.TutorialCompleted -= OnTutorialCompleted;
 }
コード例 #2
0
 void OnDestroy()
 {
     NGUIHelper.RemoveClickEventListener(windButton, OnButtonClick);
     NGUIHelper.RemoveClickEventListener(stringButton, OnButtonClick);
     NGUIHelper.RemoveClickEventListener(brassButton, OnButtonClick);
     NGUIHelper.RemoveClickEventListener(percussionButton, OnButtonClick);
     EventManager.Highlight   -= OnHighlightOn;
     EventManager.NoHighlight -= OnHighlightOff;
 }
コード例 #3
0
 void OnDestroy()
 {
     EventManager.MenuHide -= MenuHide;
     NGUIHelper.RemoveClickEventListener(menuButton, OnButtonPressMenu);
     NGUIHelper.RemovePressEventListener(facebookButton, OnFacebookPress);
     NGUIHelper.RemovePressEventListener(twitterButton, OnTwitterPress);
     NGUIHelper.RemovePressEventListener(reviewButton, OnReviewPress);
     if (underlay != null)
     {
         NGUIHelper.RemoveClickEventListener(underlay.gameObject, HideMenu);
     }
 }