1 using UnityEngine; 2 using SLua; 3 4 5 public class AppDelegate : MonoBehaviour { 6 7 private static LuaState m_luaState = new LuaState(); 8 9 void Start () { 10 m_luaState.doString("print(‘Hello World‘)"); 11 } 12 }
时间: 2024-11-05 02:32:47
1 using UnityEngine; 2 using SLua; 3 4 5 public class AppDelegate : MonoBehaviour { 6 7 private static LuaState m_luaState = new LuaState(); 8 9 void Start () { 10 m_luaState.doString("print(‘Hello World‘)"); 11 } 12 }