Пример #1
0
 //---------------------------------------------------------
 public static void RegisterButtonDelegate3(GUIBase_Button button,
                                            GUIBase_Button.TouchDelegate3 touch,
                                            GUIBase_Button.TouchDelegate3 release,
                                            GUIBase_Button.TouchDelegate3 cancel)
 {
     if (button != null)
     {
         button.RegisterTouchDelegate3(touch);
         button.RegisterReleaseDelegate3(release);
         button.RegisterCancelDelegate3(cancel);
     }
     else
     {
         Debug.LogError("Invalid agrument - button (null)");
     }
 }