Пример #1
0
    // Use this for initialization
    void Start()
    {
        bios     = GameObject.Find("BIOS");
        hardware = GameObject.Find("Hardware");

        windowRect = new Rect(0, 0, Customize.cust.RezX, Customize.cust.RezY);
        //pui = GetComponent<ProfileUI>();
        //accset = GetComponent<AccSetup>();
        //lbg = GetComponent<LoginBackground>();
        biosselect = bios.GetComponent <BIOSSelect>();
        boot       = GetComponent <Boot>();
        OScheck    = GetComponent <OSCheck>();
        ram        = hardware.GetComponent <RAM>();
        harddrives = hardware.GetComponent <HardDrives>();
        cpu        = hardware.GetComponent <CPU>();
        Crash      = GameObject.Find("Crash");
        SCM        = Crash.GetComponent <SysCrashMan>();
        cd         = GameControl.control.BootTime;
        cooldown   = 0.256f;
        cooldown1  = 0.256f;
        Screen.SetResolution(Customize.cust.RezX, Customize.cust.RezY, Customize.cust.FullScreen);
        GameControl.control.TimeMulti = 1;

        if (Application.isEditor == true)
        {
            windowRect.width  = Screen.width;
            windowRect.height = Screen.height;
        }
        else
        {
            windowRect.width  = Customize.cust.RezX;
            windowRect.height = Customize.cust.RezY;
        }
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        SysSoftware = GameObject.Find("System");
        Hardware    = GameObject.Find("Hardware");


        Crash = GameObject.Find("Crash");
        SCM   = Crash.GetComponent <SysCrashMan>();

        cpu = Hardware.GetComponent <CPU>();
        ram = Hardware.GetComponent <RAM>();
        tv  = SysSoftware.GetComponent <TaskViewer>();
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        Crash    = GameObject.Find("Crash");
        Desktops = GameObject.Find("Desktops");
        Software = GameObject.Find("Software");
        prompt   = GameObject.Find("Prompts");
        System   = GameObject.Find("System");

        noti = prompt.GetComponent <NotfiPrompt>();
        SCM  = Crash.GetComponent <SysCrashMan> ();
        tv   = System.GetComponent <TaskViewer>();

        appman = System.GetComponent <AppMan>();
    }
Пример #4
0
    // Use this for initialization
    void Start()
    {
        cd = GameControl.control.BootTime;
        Kernal();

        missions = GameObject.Find("Missions");

        jd    = GetComponent <JailDew>();
        uc    = GetComponent <Unicom>();
        test  = GetComponent <Test>();
        disk  = GetComponent <CD>();
        com   = GetComponent <Computer>();
        note  = GetComponent <Notepad>();
        pro   = GetComponent <Progtive>();
        trace = GetComponent <Tracer>();
        mb    = GetComponent <MissionBrow>();
        cc    = GetComponent <CurContracts>();
        sl    = GetComponent <SiteList>();
        al    = GetComponent <AccLog>();
        ds    = GetComponent <DirSearch>();
        tv    = GetComponent <TreeView>();
        clk   = GetComponent <Clock>();
        cmd   = GetComponent <CLI> ();
        def   = GetComponent <Defalt>();
        mg    = GetComponent <MissionGen>();
        os    = GetComponent <OS>();
        sm    = GetComponent <SystemMap>();
        wsv   = GetComponent <WebSecViewer>();
        ep    = GetComponent <ErrorProm>();
        sdp   = GetComponent <ShutdownProm>();
        sp    = GetComponent <SystemPanel>();
        sc    = GetComponent <SoundControl>();
        desk  = GetComponent <Desktop>();
        ct    = GetComponent <CustomTheme>();
        mouse = GetComponent <Mouse>();
        ss    = GetComponent <ScreenSaver>();
        clic  = GetComponent <CLICommandsV2>();
        shc   = GetComponent <SysHardwareCheck>();

        missiongen       = missions.GetComponent <MissionGen>();
        missionbrow      = missions.GetComponent <MissionBrow>();
        currentcontracts = missions.GetComponent <CurContracts>();

        Crash = GameObject.Find("Crash");
        SCM   = Crash.GetComponent <SysCrashMan>();

        Prompt = GameObject.Find("Prompts");
        noti   = Prompt.GetComponent <NotfiPrompt>();

        RotationCooldown = 0.01f;

        if (Application.isEditor == true)
        {
            windowRect.width  = Screen.width;
            windowRect.height = Screen.height;
        }
        else
        {
            windowRect.width  = Customize.cust.RezX;
            windowRect.height = Customize.cust.RezY;
        }

        Pos.width  = windowRect.width / 2;
        Pos.height = windowRect.height / 2;

        windowRect.x = 0;
        windowRect.y = 0;

        x = Pos.width - 30;
        y = Pos.height;

        GameControl.control.GUIID = Customize.cust.GUIID;

        StartTimer = 0.01f;

        PlaySoundOnce = false;

        LoadPresetColors();

        missiongen.enabled       = true;
        missionbrow.enabled      = true;
        currentcontracts.enabled = true;
    }