Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        pdc = GameObject.Find("PersistantDataContainer").GetComponent<PersistantDataContainer>();

        orderedScores = pdc.OrderScores();

        orderScoreboard ();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        pcc = GameObject.Find("PersistantDataContainer").GetComponent<PersistantDataContainer>();
        AudioSource music = GameObject.Find("Menu music").GetComponent<AudioSource>();

        music.time = pcc.menuMusicTime;

        music.Play();

        P1_OK.renderer.enabled = false;
        P2_OK.renderer.enabled = false;
        P3_OK.renderer.enabled = false;
        P4_OK.renderer.enabled = false;

        SelectSound.Pause();
        SelectSound.loop = false;
    }