MCPcopy Create free account
hub / github.com/Tencent/xLua / ByFile

Class ByFile

Assets/XLua/Tutorial/LoadLuaScript/ByFile/ByFile.cs:15–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace Tutorial
14{
15 public class ByFile : MonoBehaviour
16 {
17 LuaEnv luaenv = null;
18 // Use this for initialization
19 void Start()
20 {
21 luaenv = new LuaEnv();
22 luaenv.DoString("require 'byfile'");
23 }
24
25 // Update is called once per frame
26 void Update()
27 {
28 if (luaenv != null)
29 {
30 luaenv.Tick();
31 }
32 }
33
34 void OnDestroy()
35 {
36 luaenv.Dispose();
37 }
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected