Beispiel #1
0
    private void SetButton(JobInfo jobInfo)
    {
        var button = UIManager.Instance.GetJobButton();

        button.GetComponentInChildren <Text>().text = jobInfo.Method.Name;
        ButtonUtil.SetOnClickAction(button, UIManager.GetJobButtonAction(this));
        Button = button;
    }
Beispiel #2
0
        private void AddInteractionButton(JobInfo jobInfo)
        {
            var button = CreateInteractionButton(_interactionPanel, jobInfo);

            ButtonUtil.SetOnClickAction(button, GetInteractionAction(jobInfo));
        }
 public void SetActionButton(UnityAction action)
 {
     ButtonUtil.SetOnClickAction(actionButton, action);
 }