public UM_ServicePlatfromInfo(UM_UIPlatform platform, UM_NativeServiceSettings settings) { this.platform = platform; m_settings = settings; switch (platform) { case UM_UIPlatform.IOS: m_content = new GUIContent(" iOS (" + m_settings.ServiceName + ")", UM_Skin.GetPlatformIcon("ios_icon.png")); break; case UM_UIPlatform.Android: m_content = new GUIContent(" Android (" + m_settings.ServiceName + ")", UM_Skin.GetPlatformIcon("android_icon.png")); break; } m_layout = new UM_PlatfromStateLayout(m_content); }
protected void AddPlatfrom(UM_UIPlatform platform, UM_NativeServiceSettings settings) { var info = new UM_ServicePlatfromInfo(platform, settings); m_platforms.Add(info); }