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

        UiBridge.InitBridge();

        yield break;
    }
    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;
    }
Exemple #3
0
 public void SetupUIBridge(ICUIBridge bridge)
 {
     UiBridge = bridge;
 }