📜  unity onclick 对象 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:21.397000             🧑  作者: Mango

代码示例1
void Update () {
     
 }
  void OnMouseDown(){
         // this object was clicked - do something
     Destroy (this.gameObject);
  }