示例#1
0
    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);
    }
示例#2
0
    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();
    }
示例#3
0
 void Awake()
 {
     Self = this;
 }