unity3d中的脚本生命周期_脚本执行的周期

  现在我们写几个常用的

 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);
    }