55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using DG.Tweening;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using static UnityEngine.GraphicsBuffer;
|
|
|
|
public class UI_ComputerSystemHomePagePanel : UI_ComputerSystemBasePanel
|
|
{
|
|
|
|
public override void ShowMe()
|
|
{
|
|
base.ShowMe();
|
|
|
|
RectTransform rPanel = ToolFuncManager.GetChild(this.transform, "webview").GetComponent<RectTransform>();
|
|
|
|
if (FirstPageTween)
|
|
{
|
|
rPanel.localScale = new Vector3(0.5f, 0.5f, 1);
|
|
rPanel.DOScale(new Vector3(1, 1, 1), 0.5f);
|
|
}
|
|
else
|
|
{
|
|
rPanel.localScale = new Vector3(1, 1, 1);
|
|
}
|
|
}
|
|
|
|
public override void HideMe()
|
|
{
|
|
base.HideMe();
|
|
}
|
|
|
|
/// <summary>
|
|
/// °´Å¥µã»÷
|
|
/// </summary>
|
|
/// <param name="btnName"></param>
|
|
protected override void OnClick(string btnName)
|
|
{
|
|
base.OnClick(btnName);
|
|
switch (btnName)
|
|
{
|
|
case "closeBtn":
|
|
GameManager.UIMgr.HidePanel<UI_ComputerSystemHomePagePanel>();
|
|
break;
|
|
case "loginBtn":
|
|
GameManager.UIMgr.HidePanel<UI_ComputerSystemHomePagePanel>();
|
|
GameManager.UIMgr.ShowPanel<UI_ComputerSystemJLZXJCPanel>();
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
}
|