| 13 | namespace 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected