Пример #1
0
 public static void RestartProtocol()
 {
     if (!RepeatFindButton(Resources.QuickFight, 4))
     {
         if (FindButton(Resources.LabelRegular))
         {
             BoxOpener.OpenBox(recount: true);
         }
         else if (ClickButtonWithFind(Resources.Choose))
         {
             BoxOpener.OpenBox(false, true);
             SettingsManager.settings.champTime.AddHours(48);
         }
         else if (FindButton(Resources.LabelLegendary))
         {
             BoxOpener.OpenBox(false, true);
         }
         else if (FindButton(Resources.LabelSuper))
         {
             BoxOpener.OpenBox(false, true);
         }
         else if (FindButton(Resources.LabelGangbox))
         {
             BoxOpener.OpenBox(false, true);
         }
         else
         {
             RestartApp();
         }
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     menuManager = GetComponent <MenuManager>();
     menuUI      = GetComponent <MenuUI>();
     boxOpener   = GetComponent <BoxOpener>();
     oncePressR  = false;
 }
Пример #3
0
        private void BotMainLoop()
        {
            try
            {
                if (SettingsManager.settings.champ && !SettingsManager.settings.Initialize())
                {
                    checkChamp.Checked = false;
                    checkChamp.Enabled = false;
                }

                BoxOpener.SetBoxes();

                if (SettingsManager.settings.boxTime.CompareTo(DateTime.Now) > 0)
                {
                    Logger.Log("Next box opens at: " + SettingsManager.settings.boxTime.ToString());
                }

                while (toogleState == CheckState.Checked && toogleStartStop.Checked)
                {
                    if (BoxOpener.Run() == Messages.Restart)
                    {
                        Game.RestartProtocol();
                    }

                    if (Championship.Run() == Messages.Restart)
                    {
                        Game.RestartProtocol();
                        Championship.SetChamp();
                    }

                    if (QuickFight.Run(loops: 5) == Messages.Restart)
                    {
                        Game.RestartProtocol();
                    }

                    if (Hibernate.Run() == Messages.Hibernate)
                    {
                        toogleState      = CheckState.Indeterminate;
                        this.WindowState = FormWindowState.Minimized;
                    }
                }

                toogleState             = CheckState.Unchecked;
                toogleStartStop.Checked = false;
                sw.Stop();
                TimeSpan ts = sw.Elapsed;
                SettingsManager.currentStatistics.working += ts.TotalHours;
            }
            catch (Exception e)
            {
                Logger.Log("BotMainLoop Exception: " + e.Message, debug: true);
            }
        }
Пример #4
0
    void Start()
    {
        menuManager = GetComponent <MenuManager>();
        box         = GetComponent <BoxOpener>();

        levelCardKeyPoses          = new List <List <keyPose> >();
        whereTheCardiS             = new List <Vector3>();
        whereTheCardiSrotation     = new List <Quaternion>();
        levelCardInfoKeyPoses      = new List <List <keyPose> >();
        whereTheCardInfoiS         = new List <Vector3>();
        whereTheCardInfoiSrotation = new List <Quaternion>();

        isAPawnMoving              = false;
        isACardMoving              = false;
        isACardInfoMoving          = false;
        aCardIsShown               = false;
        aCardInfoIsShown           = false;
        aCardInfoIsReady           = false;
        aCardLevelSelectedIsMoving = false;
        initCardInfo               = false;

        //pressR.gameObject.SetActive(false);
    }
Пример #5
0
 public void Start()
 {
     box         = GameObject.FindObjectOfType <MenuManager>().GetComponent <BoxOpener>();
     menuManager = GameObject.FindObjectOfType <MenuManager>();
 }