现在我们写几个常用的

voidAwake(){Custom("Awake");}voidOnEnable(){Custom("OnEnable");}voidStart(){Custom("Start");}voidUpdate(){Custom("Update");}voidLateUpdate(){Custom("LateUpdate");}voidOnGUI(){Custom("OnGUI");}voidOnDestroy(){Custom("OnDestroy");}voidOnDisable(){Custom("OnDisable");}voidCustom(stringfuction){Debug.Log(fuction);}