现在我们写几个常用的
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);
}本文出自 “计算机” 博客,请务必保留此出处http://5152481.blog.51cto.com/5142481/1601456
原文地址:http://5152481.blog.51cto.com/5142481/1601456