void Awake()
    {
        playerColourPicker = GetComponent <PlayerColourPicker>();

        cameraControl = camera.GetComponent <MenuCameraControl>();

        csManager = GetComponent <CSManager>();

        scrollCredits = creditsUI.GetComponentInChildren <ScrollCredits>();
    }
Exemple #2
0
    void Awake()
    {
        zone               = GameObject.FindGameObjectWithTag("Zone");
        zoneControl        = zone.GetComponent <ZoneControl>();
        zoneManager        = zone.transform.parent.GetComponent <ZoneManager>();
        playerColourPicker = GetComponent <PlayerColourPicker>();

        for (int i = 0; i < 4; i++)
        {
            outerSpawns[i]  = outerSpawnParent.transform.GetChild(i);
            centreSpawns[i] = centerSpawnParent.transform.GetChild(i);
            sliders[i]      = scoreObjects[i].GetComponentInChildren <Slider>();
        }
    }