示例#1
0
文件: PageRobot.cs 项目: Omybot/GoBot
 private void rdoMainRobot_CheckedChanged(object sender, EventArgs e)
 {
     if (Config.CurrentConfig.IsMiniRobot != !rdoMainRobot.Checked)
     {
         Config.CurrentConfig.IsMiniRobot = !rdoMainRobot.Checked;
         Robots.Init();
     }
 }
    IEnumerator InitRobot()
    {
        robots.gameObject.SetActive(true);
        Texture2D[] list = new Texture2D[characterManager.all.Count];
        for (int a = 0; a < characterManager.all.Count; a++)
        {
            list [a] = characterManager.all[a];
        }
        robots.Init(list, mainCamera);
        yield return(new WaitForSeconds(25));

        Events.OnLightTrip(true);
        yield return(new WaitForSeconds(1));

        robots.Reset();
        robots.gameObject.SetActive(false);
        world.OnChange();
        yield return(new WaitForSeconds(60));

        Restart();
    }