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; }