// Update is called once per frame void Update() { if (bcgImgArgs != null) { bcgImageScript.SetImage(bcgImgArgs.imgName, bcgImgArgs.bytes); bcgImgArgs = null; } }
private void StartLoadBcgImage(string gameStoreName, string imgName, EventHandler <ImgLoaderArgs> OnFinished) { ImgLoaderArgs args = new ImgLoaderArgs { imgName = imgName, bytes = PersistanceHelper.GetImage(gameStoreName, imgName) }; OnFinished(null, args); }
private void LoadBcgImage(object sender, ImgLoaderArgs e) { bcgImgArgs = e; }