摘要:
local function GetStringWordNum(str) local fontSize = 20 local lenInByte = #str local count = 0 local i = 1 while true do local curByte = string.byte(str, i) if i ... 阅读全文
摘要:
1. loop [luːp] n. 环;圈;弯曲部分;翻筋斗 vt. 使成环;以环连结;使翻筋斗 vi. 打环;翻筋斗 2. gain [geɪn] n. 增加;利润;收获 vt. 获得;增加;赚到 vi. 增加;获利 n. (Gain)人名;(英、匈、法)盖恩 3. portrait ['pɔːt 阅读全文
摘要:
using UnityEngine; using System.Collections; public class test : MonoBehaviour { //print只能在MonoBehavior的子类中使用,否则只能使用Debug.log() public int age; public string name; //每当脚本被加载时调用;“有添加... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class test1 : MonoBehaviour { public float angleSpeed; void Update () { if(Input.GetKeyDown(KeyCode.UpArrow)) { ... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class test : MonoBehaviour { void Start () { Vector3 v = new Vector3(); float x = v.x; float y = v.y; float z ... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class transform : MonoBehaviour { // Use this for initialization void Start () { //获取当前脚本所挂载的游戏对象身上的Transform //控制游戏对象的位置... 阅读全文