using System.Collections;
using System.Collections.Generic;
using DSFramework;
using UnityEngine;
public class Lession3_LuaMgr : MonoBehaviour {
void Start() {
DSLuaMgr.Instance.DoLuaFile("Main");
//获取全局变量
int num = DSLuaMgr.Instance.Global.Get<int>("testNumber");
Debug.Log(num);
//设置全局变量
DSLuaMgr.Instance.Global.Set("testNumber", 66);
int num2 = DSLuaMgr.Instance.Global.Get<int>("testNumber");
Debug.Log(num2);
}
}