帮我完成代码
当单击按钮时,需要执行来自另一个脚本(anotherScript)的函数(func1)。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Button: MonoBehaviour
{
private void OnMouseDown() {
}
}
帮我完成代码
当单击按钮时,需要执行来自另一个脚本(anotherScript)的函数(func1)。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Button: MonoBehaviour
{
private void OnMouseDown() {
}
}
2 个回答