示例#1
0
    // Token: 0x060009C6 RID: 2502 RVA: 0x0002A518 File Offset: 0x00028918
    public void ShowVipPanel()
    {
        string name = "Prefabs/UI/UIVIPPanel";

        if (ComibilityHelper.IsWideScreen())
        {
            name = "Prefabs/UI/UIVipPanelWidescreen";
        }
        Transform transform = ResourceHelper.LoadUI(name, base.transform);

        this._vipPanel = transform.GetComponent <UIVipPanel>();
        this._vipPanel.Init();
    }
示例#2
0
 // Token: 0x060009D4 RID: 2516 RVA: 0x0002A848 File Offset: 0x00028C48
 private void Start()
 {
     this._aspectRatioFitter = base.transform.GetComponent <AspectRatioFitter>();
     if (this._aspectRatioFitter != null)
     {
         float aspectRadio = ComibilityHelper.GetAspectRadio();
         float num         = 1f;
         if (ComibilityHelper.IsWideScreen())
         {
             num = 1.05f;
         }
         this._aspectRatioFitter.aspectRatio = this._aspectRatioFitter.aspectRatio * aspectRadio * num;
     }
 }
    // Token: 0x0600099B RID: 2459 RVA: 0x000295D0 File Offset: 0x000279D0
    private void InitGamePanel()
    {
        string text = "Prefabs/UI/UIGamePanel";

        if (ComibilityHelper.IsWideScreen())
        {
            text += "Widescreen";
        }
        this._gamePanel = ResourceHelper.LoadUI(text, this._GameUICanvas.transform).gameObject;
        this._gamePanel.SetActive(true);
        this._gamePanel.GetComponent <RectTransform>().offsetMin = Vector2.zero;
        this._gamePanel.GetComponent <RectTransform>().offsetMax = Vector2.zero;
        this.InitTop();
        this._loading   = this._gamePanel.transform.Find("Loading");
        this._isLoading = false;
    }
 // Token: 0x060008C5 RID: 2245 RVA: 0x00025A40 File Offset: 0x00023E40
 private void Awake()
 {
     if (GoogleAdmobBanner.instance == null)
     {
         GoogleAdmobBanner.instance = this;
         UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
         if (ComibilityHelper.IsWideScreen())
         {
             this.m_bannerPosition = AdPosition.Top;
         }
         this.SetBannerID();
         if (PlayerManager.Instance.IsShowBanner())
         {
             this.LoadBanner();
             this.HideBanner();
         }
     }
     else if (GoogleAdmobBanner.instance != this)
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
    // Token: 0x060009B2 RID: 2482 RVA: 0x00029CE8 File Offset: 0x000280E8
    private void InitOverPanel()
    {
        string text = "Prefabs/UI/UIOverPanel";

        if (ComibilityHelper.IsWideScreen())
        {
            text += "Widescreen";
        }
        this._overPanel = ResourceHelper.LoadUI(text, this._GameUICanvas.transform).gameObject;
        this._overPanel.SetActive(false);
        this._overPanel.GetComponent <RectTransform>().offsetMin = Vector2.zero;
        this._overPanel.GetComponent <RectTransform>().offsetMax = Vector2.zero;
        Button component = this._overPanel.transform.Find("BackButton").GetComponent <Button>();

        component.onClick.AddListener(delegate
        {
            this.OnOverBackClick(this._backButton.gameObject);
        });
        Button component2 = this._overPanel.transform.Find("ShareButton").GetComponent <Button>();

        component2.onClick.AddListener(delegate
        {
            this.OnShareClick(this._backButton.gameObject);
        });
        Button component3 = this._overPanel.transform.Find("SaveButton").GetComponent <Button>();

        component3.onClick.AddListener(delegate
        {
            this.OnSaveClick(this._backButton.gameObject);
        });
        Button component4 = this._overPanel.transform.Find("InsButton").GetComponent <Button>();

        component4.onClick.AddListener(delegate
        {
            this.OnInsClick(this._backButton.gameObject);
        });
    }