// Use this for initialization
    void Start()
    {
        // Init Config
        configGO = GameObject.Find("Config").gameObject;
        config   = configGO.GetComponent <DoConfig>();

        string randomEmployeeName = config.employeeRandomNames [Random.Range(0, config.employeeRandomNames.Length)];

        name      = GameObject.Find("Name").gameObject.GetComponent <TextMesh>();
        name.text = randomEmployeeName;
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        // Init Config
        configGO = GameObject.Find("Config").gameObject;
        config   = configGO.GetComponent <DoConfig>();

        // Retrieve screens
        if (activeScreens == null)
        {
            activeScreens       = GameObject.FindGameObjectsWithTag("active_screen");
            currentActiveScreen = activeScreens[1];
            randomActiveScript  = currentActiveScreen.GetComponent <RandomActive>();
        }
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        // Init Config
        configGO = GameObject.Find("Config").gameObject;
        config   = configGO.GetComponent <DoConfig>();

        // Init random player sound
        audioSources = config.employeeRandomAudioSources;

        // Retrieve screens
        if (employees == null)
        {
            employees = GameObject.FindGameObjectsWithTag("employee");
        }
    }
    // Use this for initialization
    void Start()
    {
        // Init Config
        configGO = GameObject.Find("Config").gameObject;
        config   = configGO.GetComponent <DoConfig>();

        // Init random player sound
        audioSources = config.playerRandomAudioSources;

        // No sound, no cookie :p
        if (audioSources.Length == 0)
        {
            inCoRoutine = true;
        }
        inCoRoutineWok = true;
    }
    // Use this for initialization
    void Start()
    {
        // Init Config
        configGO = GameObject.Find("Config").gameObject;
        config   = configGO.GetComponent <DoConfig>();

        // Init random employee sound
        employeeBackgroundSounds = config.employeeBackgroundRandomAudioSources;

        // No sound, no cookie :p
        if (employeeBackgroundSounds.Length == 0)
        {
            inCoRoutine = true;
        }

        employeeSound = GetComponent <AudioSource>();

        justSpwan = true;
    }