public UIButton(string ButtonText, OnClickedEvent ClickCallback, string CustomButtonPrefabName) { buttonText = ButtonText; clickCallback = ClickCallback; customButtonPrefabName = CustomButtonPrefabName; hasCustomButtonPrefab = true; }
public UIButton(string ButtonText, OnClickedEvent ClickCallback, BUI.UIType DifferentButtonType) { buttonText = ButtonText; clickCallback = ClickCallback; customButtonType = DifferentButtonType; hasDifferentButtonType = true; }
public void OnTap(Vector2 point) { if (!Interactable) { return; } OnClickedEvent?.Invoke(); }
public CategoryGridThumbnail() { OnClickCb = new OnClickedEvent(); }
public UIButton(string ButtonText, OnClickedEvent ClickCallback) { buttonText = ButtonText; clickCallback = ClickCallback; }
public CategoryGridTile() { OnClickCb = new OnClickedEvent(); }
protected override void OnClicked() { OnClickedEvent.Invoke(); }