Ejemplo n.º 1
0
    public static void RegisterWidget(string path, int showCode, int hideCode)
    {
        GameEventCenter gameEventCenter = GameEventCenter.GetInstance();

        gameEventCenter.RegisterEvent(showCode, delegate(GameEvent evt) {
            Show(path);
        });
        gameEventCenter.RegisterEvent(hideCode, delegate(GameEvent evt) {
            Hide(path);
        });
    }