How to trigger the On Click function of a button in Unity?

前端 未结 0 632
轮回少年
轮回少年 2020-12-10 06:46

In my script I want to trigger a Click function of a button I thought I can do something like:

gameObject.GetComponent
相关标签:
回答
  • 消灭零回复
提交回复
热议问题