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");
}
}
unity函数执行顺序
最新推荐文章于 2024-07-22 15:26:15 发布