摘要:
测试代码 public class DisableInPrefabDemo : MonoBehaviour { [DisableInPrefabInstances] //预制体实例Inspector中禁用 public GameObject m_Prefab; [DisableInPrefabAss 阅读全文
摘要:
遍历数组 public static void Test1(LuaTable luaObj_AllDatas) { int cnt = luaObj_AllDatas.Length; for (int i = 1; i <= cnt; ++i) { luaObj_AllDatas.Get(i, ou 阅读全文
摘要:
是否为闰年 function TimeUtil.IsLeapYear(year) local b = (year % 4 == 0 and year % 100 ~= 0) or (year % 400 == 0) return b end local m_MonthDaysMap = { 31, 阅读全文
摘要:
美国习惯星期转中国习惯星期function TimeUtil.WdayToWdayCN(wday) if 1 == wday then return 7 else return wday - 1 end end 美国习惯的星期加减, 1_周日, 2_周一 ... 7_周六 function Time 阅读全文
摘要:
一些工具函数 获取本地时区偏差 @return integer 当前时区与UTC时间的偏移秒数 function TimeUtil.GetLocalTimeZoneOffset() local timestamp = os.time() local date = os.date("!*t", tim 阅读全文