游戏蛮牛学习群(纯技术交流,不闲聊):159852603
游戏蛮牛 手机端
开启辅助访问
 找回密码
 注册帐号

扫一扫,访问微社区

首页   >   博客   >  0null0
0null0 个人分类:C#方法代码 505 2018-2-2 10:58

功能最全的拓展查找代码 static Liststring spineAnimFilePath = new Liststring(); static Liststring Director(string dir) { DirectoryInfo d = new DirectoryInfo(dir); FileSystemInfo[] fsinfos = d.GetFileSystemInfos(); foreach (FileSystemI ...

0null0 个人分类:C#方法代码 405 2018-2-2 10:34

csharpcode: static void CopyDir(string srcPath, string aimPath) { try { // 检查目标目录是否以目录分割字符结束如果不是则添加 if (aimPath != System.IO.Path.DirectorySeparatorChar) { aimPa ...

0null0 个人分类:C#方法代码 478 2018-2-1 14:45

csharpcode: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConsoleApp2 { class Program { static void Main(string fsinfos = d.GetFileSystemInfos(); foreach (FileSystemInfo fsinfo in fsinfos ...

0null0 个人分类:U3D 608 2018-1-28 17:58

两种方法 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class Text : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler { public GameObject buttonGO; Vector3 scr ...

0null0 个人分类:U3D 308 2018-1-11 09:48

https://www.cnblogs.com/AaronBlogs/p/6816842.html

0null0 个人分类:U3D 290 2018-1-9 19:03

AssetsBundle的三种加载方法 using System.Collections; using System.Collections.Generic; using UnityEngine; //从AssetsBundle中加载文件(获取assetsbundle的方法) public class Text : MonoBehaviour { //1.本地获取AssetsBundle //void Start () { //// //获取StreamingAssets目录下 ...

0null0 个人分类:Lua 674 2018-1-3 19:39

要安装ulua插件 using System.Collections; using System.Collections.Generic; using UnityEngine; using LuaInterface; public class LuaText : MonoBehaviour { void Start () { //利用反射 //相当于创建了一个lua解释器的实例 //LuaState lua = new LuaState(); ...

0null0 个人分类:Lua 483 2018-1-3 16:31

account = {name='li',balance=100} account.withdraw=function(v) account.balance=account.balance-v end account.withdraw(6) a=account --将account置空之后 account.withdraw方法的account.balance为空,所以不能打印 account=nil --print(account.balance) -------------解决方法------- ...

0null0 个人分类:Lua 419 2018-1-3 16:07

account = {name='li',balance=100} account.withdraw=function(v) account.balance=account.balance-v end account.withdraw(6) a=account --将account置空之后 account.withdraw方法的account.balance为空,所以不能打印 account=nil --print(account.balance) -------------解决方法------- ...

0null0 个人分类:Lua 395 2018-1-3 15:14

f1=function() print('666') coroutine.yield() print('66666') end -- ] f2=function(v) while(v0) do v=v-1 print(v) coroutine.yield(v*2) end end co2=coroutine.create(f2 ...

返回顶部