示例#1
0
    public IEnumerator Init()
    {
        if (UiBridge == null)
        {
            UiBridge = new CUGUIBridge();
        }

        UiBridge.InitBridge();

        yield break;
    }
示例#2
0
    public IEnumerator Init()
    {
        Type bridgeType = Type.GetType(string.Format("C{0}Bridge", CCosmosEngine.GetConfig("UIBridgeType")));

        if (bridgeType != null)
        {
            UiBridge = Activator.CreateInstance(bridgeType) as ICUIBridge;
            UiBridge.InitBridge();
        }
        else
        {
            CBase.Log("No UI Bridge in Use.");
        }

        yield break;
    }
示例#3
0
 public void SetupUIBridge(ICUIBridge bridge)
 {
     UiBridge = bridge;
 }