public static YHAboutGameView CreateAboutView() { Object obj = Resources.Load("pbYHAboutGameView"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; YHAboutGameView agv = go.GetComponent <YHAboutGameView>(); return(agv); } return(null); }
void OnBtnSetting() { YHAboutGameView aboutView = YHAboutGameView.CreateAboutView(); aboutView.alertViewBehavriour = (ab, view) => { switch (ab) { case MDAlertBehaviour.CLICK_OK: view.hiddenView(); break; case MDAlertBehaviour.DID_HIDDEN: break; } }; SDK.AddChild(aboutView.gameObject, goRoot); aboutView.showView(); }
void Awake() { Self = this; }