01 2021 档案

摘要:# -*- coding:utf-8 -*- str_var = 'a' var = ord(str_var) print 'var type:',type(var) print var print data = 65 var = chr(data) print 'data type:',type( 阅读全文
posted @ 2021-01-28 20:24 All_Nighter 阅读(265) 评论(0) 推荐(0)
摘要:string str = "hello"; byte[] array = new byte[1]; array = System.Text.Encoding.ASCII.GetBytes(str); //把str的每个字符转换成ascii码 int asciicode1 = (short)(arra 阅读全文
posted @ 2021-01-28 20:22 All_Nighter 阅读(1732) 评论(0) 推荐(0)
摘要:MyCollections.shuffle(ref list) using System; using System.Collections.Generic; using System.Text; public class MyCollections { public static void shu 阅读全文
posted @ 2021-01-22 11:22 All_Nighter 阅读(205) 评论(0) 推荐(0)
摘要:using UnityEngine; using Vectrosity; public class myLines : MonoBehaviour { void Start () { //定义屏幕上的6个点,左下角为(0,0) var linePoints = new List<Vector2>() 阅读全文
posted @ 2021-01-20 21:29 All_Nighter 阅读(646) 评论(0) 推荐(0)
摘要:void Start () { // 发送给自身的所有脚本 //SendMessage("GetMessage", this.gameObject, SendMessageOptions.RequireReceiver); // 发送给自身的所有脚本以及自身父物体,父物体的父物体等身上所有脚本 // 阅读全文
posted @ 2021-01-20 21:27 All_Nighter 阅读(122) 评论(0) 推荐(0)
摘要:NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces(); Debug.Log(nis[0].GetPhysicalAddress().ToString()); 阅读全文
posted @ 2021-01-13 17:46 All_Nighter 阅读(89) 评论(0) 推荐(0)