摘要:
脚本是附加在游戏物体上用于定义游戏对象行为的指令代码 附加到游戏物体的脚本类必须从MonoBehaviour类继承 脚本初始化: using System.Collections; using System.Collections.Generic; using UnityEngine; public 阅读全文
摘要:
位域,简单的说就是在结构体中定义了变量的位数 比如下面就是一字节八位 #include<iostream> #include<memory.h> using namespace std; struct A { int a : 5; int b : 3; }; int main(void) { cha 阅读全文