static void InitCustom(Action <RichElementProxyManager> customInit, IGameObjectManager gameObjectManager, RichSyntaxParser richSyntaxParser)
 {
     s_mode = Mode.Custom;
     if (customInit != null)
     {
         customInit(s_proxyManager);
     }
     s_gameObjectManager = gameObjectManager;
     s_richSyntaxParser  = richSyntaxParser;
 }
        public static void Init(Mode mode,
                                Action <RichElementProxyManager> customInit = null,
                                IGameObjectManager gameObjectManager        = null,
                                RichSyntaxParser richSyntaxParser           = null)
        {
            // should we release here ?
            Release();

            switch (mode)
            {
            case Mode.UGUI:
                InitUGUI();
                break;

            case Mode.NGUI:
                InitNGUI();
                break;

            case Mode.Custom:
                InitCustom(customInit, gameObjectManager, richSyntaxParser);
                break;
            }
        }
 public static void SetRichSyntaxParser(RichSyntaxParser richSyntaxParser)
 {
     s_richSyntaxParser = richSyntaxParser;
 }