예제 #1
0
 public static void OnClick(this UISettingItem self)
 {
     self.Callback?.Invoke(self.Data.Id);
 }
예제 #2
0
 public static void SetData(this UISettingItem self, ServerConfig data, Action <int> callback)
 {
     self.Data = data;
     self.Text.SetText(data.Name);
     self.Callback = callback;
 }