void Update()
{
干饭(“我”, 12f,“食堂”); //顺序和位置要对上
}
//重载,在一个类下,同名不同参
void 干饭(string 人物)
{
Debug.Log("人物");
return;
}
void 干饭(string 人物, float 时间)
{
Debug.Log("人物,时间");
return;
}
void 干饭(string 人物, float 时间, string 地点 )
{
Debug.Log("人物,时间,地点");
return;
}