Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        stateManagerBehaviour = GameObject.Find("StateManager").GetComponent <StateManagerBehaviour>();
        playerController      = GameObject.Find("Player").GetComponent <PlayerController>();

        totalTrackCount        = guitarScoreSequences.Length + otherScoreSequences.Length;
        happinessBucketSize    = 100 / totalTrackCount;
        currentHappinessBucket = 0;

        guitarUnlockCount = 0;

        foreach (AudioSource source in guitarScoreSequences)
        {
            source.mute   = false;
            source.volume = 0;
        }

        foreach (AudioSource source in otherScoreSequences)
        {
            source.mute   = false;
            source.volume = 0;
        }
    }