您的位置:首页 > 移动开发 > Unity3D

unity函数执行顺序

2013-07-03 16:24 246 查看
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");
}
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: