using UnityEngine;
using System.Collections;
public class ScriptExcutionOrder : MonoBehaviour {
public int ResetTest = 0;
void Reset() {
Debug.Log("Reset");
if(ResetTest != 10)
ResetTest = 10;
}
void Awake() {
Debug.Log("Awake");
//enabled = false;
}
void OnEnable() {
Debug.Log("OnEnable");
}
// Use this for initialization
void Start () {
Debug.Log("Start");
}
void FixedUpdate() {
Debug.Log("FixedUpdate");
}
// Update is called once per frame
void Update () {
Debug.Log("Update");
}
void LateUpdate() {
Debug.Log("LateUpdate");
}
void OnWillRenderObject() {
Debug.Log("OnWillRenderObject");
}
void OnGUI() {
Debug.Log("OnGUI");
if(GUI.Button(new Rect(10,10,150,100)," ... ")) {
}
}
void OnDisable() {
Debug.Log("OnDisable");
}
void OnDestroy() {
Debug.Log("OnDestroy");
}
}