[유니티 스크립트 소스] Text Mesh Pro
2022. 1. 24.
1. Button using UnityEngine; using UnityEngine.UI; public class Demo : MonoBehaviour { public Button m_btn1, m_btn2, m_btn3; void Start() { m_btn1.onClick.AddListener(TaskOnClick); m_btn2.onClick.AddListener(delegate { TaskWithParameters("Hello"); }); m_btn3.onClick.AddListener(() => ButtonClicked(42)); m_btn3.onClick.AddListener(TaskOnClick); } void TaskOnClick() { Debug.Log("TaskOnClick"); } v..