Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        musicManagement = GameObject.FindObjectOfType <MusicManagement>();

        volumeSlider.value     = PlayerPrefsManager.GetMasterVolume();
        difficultySlider.value = PlayerPrefsManager.GetDifficulty();
    }
Beispiel #2
0
    void Start()
    {
        boxOrientation     = BOXORIENTATION.soundBox_1;
        boxOrientation_Old = boxOrientation;
        musicManagement    = GetComponent <MusicManagement>();
        GameObject childObject   = transform.Find("SoundInformation").gameObject;
        GameObject anotherObject = GameObject.Find("SceneChangeBox");

        sceneChangeEffect = anotherObject.GetComponent <SceneChangeEffect>();
        Set_LeftJudgment  = false;
        Set_RightJudgment = false;
        Set_JumpJudgment  = false;
        Set_sceneChange   = true;
    }
Beispiel #3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance        = this;
            isFirstInstance = true;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
            isFirstInstance = false;
        }
        DontDestroyOnLoad(this.gameObject);

        foreach (MusicTrack t in tracks)
        {
            t.source      = gameObject.AddComponent <AudioSource>();
            t.source.clip = t.clip;
            t.source.loop = t.loop;

            t.source.outputAudioMixerGroup = mixerGroup;
        }
    }
Beispiel #4
0
        //[Microsoft.AspNetCore.Mvc.HttpGet]
        public IEnumerable <MusicData> GetAllMusicDetails()
        {
            MusicManagement managementobj = new MusicManagement();

            return(managementobj.GetAllMusicDetails());
        }