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()); }
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)); }
private void Start() { player = GameObject.Find("Player"); soundsManagement = GameObject.Find("GAMEMANAGER").GetComponent <SoundsManagement>(); }