Пример #1
0
    private void Awake()
    {
        starVisScreen    = GameObject.Find("Star Visualisation Screen").GetComponent <StarVisScreen>();
        starScanScreen   = GameObject.Find("Star Scan Screen").GetComponent <StarScanScreen>();
        sysJumpScreen    = GameObject.Find("System Jump Screen").GetComponent <SysJumpScreen>();
        planetJumpScreen = GameObject.Find("Planet Jump Screen").GetComponent <PlanetJumpScreen>();

        buttonColHover   = new Color(1, 1, 1, 0.3f);
        buttonColClick   = new Color(0, 1, 0, 0.3f);
        buttonColInvalid = new Color(1, 0, 0, 0.3f);
        buttonColorDelay = 0.2f;
    }
Пример #2
0
    private void Awake()
    {
        scr = gameObject.AddComponent <Screen>();

        cursorRect   = cursor.GetComponent <RectTransform>();
        cursorScript = cursor.GetComponent <CursorHandler>();

        buttonBgImg  = buttonBackground.GetComponent <Image>();
        buttonBgRect = buttonBackground.GetComponent <RectTransform>();

        buttonColDef = buttonBgContainerImg.color;

        starVisScreen = GameObject.Find("Star Visualisation Screen").GetComponent <StarVisScreen>();
    }