1. * created by shenjun
    2. */
    3. using System.Collections;
    4. using System.Collections.Generic;
    5. using UnityEngine;
    6. using XLua;
    7. namespace shenjun
    8. LuaEnv luaEnv = new LuaEnv();
    9. void Start () {
    10. luaEnv.DoString("require 'LuaCallCSOperator'");
    11. }
    12. void Update () {
    13. luaEnv.Tick();
    14. }
    15. }
    16. private void OnDestroy()
    17. {
    18. luaEnv.Dispose();
    19. }
    20. }