
lua
不抽火哪来的烟★
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Unity实现截图功能
Unity实现截图功能代码如下:using System.Collections;using System.Collections.Generic;using UnityEngine;public class UICaptureScreen : MonoBehaviour { private Texture2D texture_2d_; private Coroutine cur_co_; private bool is_shoot_; public bool原创 2021-06-20 15:36:45 · 263 阅读 · 2 评论 -
lua的读取表转成字符串
lua的表读取成字符串针对任意一张表,读取表中所有的数据,并输出--读取表的规则function PrintByRule(data) local str = "" if type(data) == "table" then str = str.."{" local count = 0 for key,value in pairs(data) do count = cou...原创 2019-02-15 16:02:46 · 1738 阅读 · 1 评论 -
lua链表实现栈
lua链表实现栈刚刚进新公司,一开始主要也是学习新东西的,所以想写点新的东西分享给大家,lua也是初学,还望海涵。如果大家有什么指教,或者更好的方法,欢迎评论。0.0 list = {}--创建节点function creteList( val ) return {pnext = nil , value = val}endtop = {}local oldlist = {}-...原创 2019-02-13 16:40:41 · 268 阅读 · 0 评论