Exemple #1
0
 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);
 }
Exemple #2
0
        public void PlayEffetcMusic(string MusicName)
        {
            AudioClip Music = MyCentorl.LoadAsset <AudioClip>("Sound", MusicName);

            PlayBackMusic(Music);
        }