public override IDrawer CreateDrawer()
    {
        var tabBar = new TabBar();

        HMSMainKitsTabFactory.CreateTab(tabBar);

        return(tabBar);
    }
Exemple #2
0
 private static void OnImportPackageCompleted(string packageName)
 {
     if (packageName.Contains("HMSUnityPackage"))
     {
         var enabledEditors = HMSMainKitsTabFactory.GetEnabledEditors();
         if (enabledEditors != null && enabledEditors.Count > 0)
         {
             enabledEditors.ForEach(c => c.DestroyManagers());
             enabledEditors.ForEach(f => f.CreateManagers());
         }
     }
 }
        private void OnStateChanged(bool value)
        {
            var enabledEditors = HMSMainKitsTabFactory.GetEnabledEditors();

            if (value)
            {
                if (enabledEditors != null && enabledEditors.Count > 0)
                {
                    enabledEditors.ForEach(f => f.CreateManagers());
                }
            }
            else
            {
                if (enabledEditors != null && enabledEditors.Count > 0)
                {
                    enabledEditors.ForEach(c => c.DisableManagers());
                }
            }
            RefreshDrawer(value);
            HMSPluginSettings.Instance.Settings.SetBool(PluginEnabled, value);
        }