Exemplo n.º 1
0
    public void ChangeCode(string newCode)
    {
        Code = "require 'tilelib'\n" + newCode;
        LuaEnv.DoString(Code);

        BindEvent?.Invoke();
        UStart?.Invoke();
    }
Exemplo n.º 2
0
    // Use this for initialization
    protected void Start()
    {
        LuaEnv     = new LuaEnv();
        BindEvent += Binding;
        BindEvent += BindLocalMethod;

        UUpdate += OUpdate;
        UStart  += OStart;

        BindEvent?.Invoke();
        UStart?.Invoke();
    }