摘要: using System; using System.IO; using System.Runtime.InteropServices; using UnityEngine; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 阅读全文
posted @ 2021-04-07 20:33 All_Nighter 阅读(987) 评论(0) 推荐(0) 编辑
摘要: string pLocalFilePath ="";//要复制的文件路径 string pSaveFilePath ="";//指定存储的路径 if (File.Exists(pLocalFilePath))//必须判断要复制的文件是否存在 { File.Copy(pLocalFilePath, p 阅读全文
posted @ 2021-04-07 20:31 All_Nighter 阅读(306) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using RenderHeads.Media.AVProVideo; public class AVPevent : MonoBehavio 阅读全文
posted @ 2021-03-13 09:57 All_Nighter 阅读(484) 评论(0) 推荐(0) 编辑
摘要: using System; using System.IO; using System.Runtime.InteropServices; using UnityEngine; public class shutdown : MonoBehaviour { public string ShutDown 阅读全文
posted @ 2021-03-02 14:35 All_Nighter 阅读(105) 评论(0) 推荐(0) 编辑
摘要: # -*- 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 阅读(243) 评论(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 阅读(1634) 评论(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 阅读(172) 评论(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 阅读(488) 评论(0) 推荐(0) 编辑
摘要: void Start () { // 发送给自身的所有脚本 //SendMessage("GetMessage", this.gameObject, SendMessageOptions.RequireReceiver); // 发送给自身的所有脚本以及自身父物体,父物体的父物体等身上所有脚本 // 阅读全文
posted @ 2021-01-20 21:27 All_Nighter 阅读(109) 评论(0) 推荐(0) 编辑
摘要: NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces(); Debug.Log(nis[0].GetPhysicalAddress().ToString()); 阅读全文
posted @ 2021-01-13 17:46 All_Nighter 阅读(76) 评论(0) 推荐(0) 编辑