标签:disable ble img system date 逻辑 eric log demo
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Demo01 : MonoBehaviour
{
// Start is called before the first frame update
private void Start()
{
}
// Update is called once per frame
private void Update()
{
}
}
//序列化字段,在编译器中显示私有变量
[SerializeField]
private int a = 100;
//隐藏字段
[HideInInspector]
public int b = 200;
//范围
[Range(0,100)]
public int c;
//-------------------------生命周期--------------------------------------
//Awake先执行 创建游戏对象,立即执行
private void Awake()
{
Debug.Log("Awake" + Time.time.ToString()) ;
}
//Start后执行 创建游戏对象,脚本启用,才执行
private void Start()
{
Debug.Log("Awake" + Time.time);
}
//每隔固定时间0.02s修改一次 用于物体运动 不会受到渲染影响
private void FixedUpdate()
{
}
//渲染帧执行 适合处理游戏逻辑
private void Update()
{
}
//延迟更新
private void LateUpdate()
{
}
//-------------------------鼠标事件-----------------------------------
/*OnMouseEnter
* OnMouseOver
* OnMouseExit
* OnMouseDown
* OnMouseUp
*/
//-------------------------场景渲染-----------------------------------
//相机可见
static void OnBecameVisible()
{
}
//相机不可见
static void OnBecameInbisible()
{
}
//-------------------------结束阶段-----------------------------------
//OnDisable 当不可用
//OnDestroy 当销毁
//OnApplicationQuit 当程序结束
4.
标签:disable ble img system date 逻辑 eric log demo
原文地址:https://www.cnblogs.com/treblez/p/13503950.html