public class GUI_DrawButton : MonoBehaviour
{
[SerializeField] private Button gui_Button;
// Start is called before the first frame update
void Start()
{
if (gui_Button != null)
{
gui_Button.onClick.AddListener(Reset);
}

}

public void Reset()
{
Debug.Log("RESET");
}
}


๋ฒ„ํŠผ UI ์˜ค๋ธŒ์ ํŠธ ๋งŒ๋“  ํ›„ ์ด ์Šคํฌ๋ฆฝํŠธ ๋ถ™์ด๊ณ 

gui_Button์œผ๋กœ ์ž๊ธฐ ์ž์‹ ์„ ๋„ฃ์—ˆ๊ฑฐ๋“ ?


๊ทผ๋ฐ ๋ฒ„ํŠผ ํ•œ๋ฒˆ ๋ˆ„๋ฅด๋ฉด 20๋ฒˆ์”ฉ ๋ˆŒ๋ฆผ


๋ˆŒ๋ฆฌ๋Š” ์ˆ˜๋Š” ๋งค๋ฒˆ ๋ฐ”๋€œ. ๋ˆ„๋ฅผ ๋•Œ๋งˆ๋‹ค ์ˆ˜์‹ญ๋ฒˆ์”ฉ..