public void ChangeCode(string newCode) { Code = "require 'tilelib'\n" + newCode; LuaEnv.DoString(Code); BindEvent?.Invoke(); UStart?.Invoke(); }
// Use this for initialization protected void Start() { LuaEnv = new LuaEnv(); BindEvent += Binding; BindEvent += BindLocalMethod; UUpdate += OUpdate; UStart += OStart; BindEvent?.Invoke(); UStart?.Invoke(); }