public override void Load(ModelContorlBase _ModelContorl, params object[] _Agr) { base.Load(_ModelContorl, "LoginViewComp"); Image = UIGameobject.OnSubmit <Image>("Image"); Image.sprite = MyCentorl.LoadAsset <Sprite>("Image", "zi_zhdl"); TestButt = UIGameobject.OnSubmit <Button>("TestButt"); TestButt.onClick.AddListener(TestButtClick); }
public void PlayEffetcMusic(string MusicName) { AudioClip Music = MyCentorl.LoadAsset <AudioClip>("Sound", MusicName); PlayBackMusic(Music); }