
现在我们写几个常用的
void Awake()
{
Custom("Awake");
} void OnEnable()
{
Custom("OnEnable");
} void Start()
{
Custom("Start");
} void Update()
{
Custom("Update");
} void LateUpdate()
{
Custom("LateUpdate");
} void OnGUI()
{
Custom("OnGUI");
} void OnDestroy()
{
Custom("OnDestroy");
} void OnDisable()
{
Custom("OnDisable");
} void Custom(string fuction)
{
Debug.Log(fuction);
}