Пример #1
0
    public void ChangeCode(string newCode)
    {
        Code = "require 'tilelib'\n" + newCode;
        LuaEnv.DoString(Code);

        BindEvent?.Invoke();
        UStart?.Invoke();
    }
Пример #2
0
    // Use this for initialization
    protected void Start()
    {
        LuaEnv     = new LuaEnv();
        BindEvent += Binding;
        BindEvent += BindLocalMethod;

        UUpdate += OUpdate;
        UStart  += OStart;

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