Awake ->OnEable-> Start ->-> FixedUpdate-> Update -> LateUpdate ->OnGUI ->Reset -> OnDisable ->OnDestroy
using UnityEngine; using System.Collections; public class timetest : MonoBehaviour { void LateUpdate() { print("LateUpdate"); } void OnGUI() { print("OnGUI"); } void Awake() { print("Awake"); } void OnEnable() { print("OnEnable"); } void Start() { print("Start"); } void Update() { print("Update"); } void FixedUpdate() { print("FixedUpdate"); } void Reset() { print("OnReset"); } void OnDestroy() { print("OnDestroy"); } void OnDisable() { print("OnDisable"); } }打印结果如下
原文地址:http://blog.csdn.net/woailvmengmeng/article/details/28423039