📅  最后修改于: 2022-03-11 14:49:00.984000             🧑  作者: Mango
public delegate void myDelegate();
public myDelegate Del;
void start()
{
Del = () => { Debug.log(" Hello there"): };
}
void Update()
{
if(Input.getkeydown(keycode.space))
Del();
}