DelegateFactory.Register C# (CSharp) Method

Register() private method

private Register ( ) : void
return void
    public static void Register()
    {
        dict.Clear();
    }

Usage Example

示例#1
0
    void Start()
    {
        InputMgr.Instance.initialize();
        ManifestMgr.Init();
        AtlasMgr.Instance.Init();
#if UNITY_5 || UNITY_2017 || UNITY_2018
        Application.logMessageReceived += Log;
#else
        Application.RegisterLogCallback(Log);
#endif
        lua = new LuaState();
        lua.Start();
        LuaBinder.Bind(lua);
        lua.OpenLibs(LuaDLL.luaopen_pb);
        lua.OpenLibs(LuaDLL.luaopen_struct);
        lua.OpenLibs(LuaDLL.luaopen_lpeg);
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
        luaState.OpenLibs(LuaDLL.luaopen_bit);
#endif
        DelegateFactory.Register();
        string dataPath = Application.dataPath;
        int    index    = dataPath.LastIndexOf("/");
        dataPath = dataPath.Substring(0, index);
        //lua.AddSearchPath(fullPath);
        lua.DoFile(Path.Combine(dataPath, "Client/Scripts/__init.lua"));
        LogicFrame.Instance.initialize(lua);
        GameSocket.Instance.run("192.168.1.108", "8007");
    }
All Usage Examples Of DelegateFactory::Register