コード例 #1
0
 public static void AppleSiliconFixDisabled()
 {
     if (AssetsRefreshTool.SetAppleSiliconFixEnabled(false, false, true))
     {
         UpdateMenu();
     }
 }
コード例 #2
0
 public static void RefreshOnPlay()
 {
     if (AssetsRefreshTool.SetRefreshOnPlayEnabled(true, false, true))
     {
         UpdateMenu();
     }
 }
コード例 #3
0
        /*
         * Private.
         */

        private static void UpdateMenu()
        {
            var enabled = AssetsRefreshTool.GetRefreshOnPlayEnabled();

            Menu.SetChecked(AutoRefreshEnabledMenuItem, !enabled);
            Menu.SetChecked(RefreshOnPlayMenuItem, enabled);

            enabled = AssetsRefreshTool.GetAppleSiliconFixEnabled();
            Menu.SetChecked(AppleSiliconFixEnabledMenuItem, enabled);
            Menu.SetChecked(AppleSiliconFixDisabledMenuItem, !enabled);
        }
コード例 #4
0
 public static bool AppleSiliconFixDisabledValidation()
 {
     return(AssetsRefreshTool.GetAppleSiliconFixEnabled());
 }
コード例 #5
0
 public static bool RefreshOnPlayValidation()
 {
     return(!AssetsRefreshTool.GetRefreshOnPlayEnabled() && !AssetsRefreshTool.GetAppleSiliconFixEnabled());
 }