Exemplo n.º 1
0
        public ActionResult SoundManager()
        {
            SoundsManagement sm = new SoundsManagement();

            sm.UpdateSoundList();
            ViewBag.SoundNames = SoundsManagement.s_names;
            ViewBag.SoundIds   = SoundsManagement.s_ids;
            ViewBag.SoundPaths = SoundsManagement.s_paths;
            ViewBag.SoundCount = SoundsManagement.s_ids.Count;
            return(View());
        }
Exemplo n.º 2
0
        public JsonResult getSoundInfo(int fileID)
        {
            SoundsManagement sm     = new SoundsManagement();
            List <string>    result = sm.GetSoundInfo(fileID);
            var res = new
            {
                name     = result[0],
                path     = result[1],
                size     = result[2],
                duration = result[3],
                currpos  = result[4],
                title    = result[5],
                artist   = result[6],
                album    = result[7]
            };

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
 private void Start()
 {
     player           = GameObject.Find("Player");
     soundsManagement = GameObject.Find("GAMEMANAGER").GetComponent <SoundsManagement>();
 }