You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
341 B
19 lines
341 B
1 month ago
|
#if !XLUA_GENERAL
|
||
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using XLua;
|
||
|
|
||
|
public class Main : MonoBehaviour {
|
||
|
LuaEnv luaenv;
|
||
|
// Use this for initialization
|
||
|
void Start () {
|
||
|
luaenv = LuaEnvSingleton.Instance;
|
||
|
luaenv.DoString ("require 'main'");
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update () {
|
||
|
luaenv.GC ();
|
||
|
}
|
||
|
}
|
||
|
#endif
|