转载自::http://blog.csdn.net/nateyang/article/details/9173773 using UnityEngine; using System.Collections; public class Order : MonoBehaviour { void Awake() { print ("Awake"); } // Use this for initialization void Start () { print ("Start"); } void OnEnable() { print ("OnEnable"); } // Update is called once per frame void Update () { print ("Update"); } void LateUpdate() { print ("LateUpdate"); } void FixedUpdate() { print ("FixedUpdate"); } void OnGUI() { print ("OnGUI"); Destroy(gameObject); } void OnDisable() { print ("OnDisable"); } void OnDestroy() { print ("OnDestroy"); } void Reset() { print ("Reset"); } }