【m】框架大更新

This commit is contained in:
2025-10-31 11:18:23 +08:00
parent ae6e7c804b
commit 8e1d52ddbf
1883 changed files with 213934 additions and 640 deletions

View File

@@ -0,0 +1,43 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHomeWindow : MonoBehaviour
{
private Text _version;
private GameObject _aboutView;
private void Awake()
{
_version = this.transform.Find("version").GetComponent<Text>();
_aboutView = this.transform.Find("AboutView").gameObject;
var loginBtn = this.transform.Find("PlayGameButton").GetComponent<Button>();
loginBtn.onClick.AddListener(OnClickPlayGameBtn);
var aboutBtn = this.transform.Find("AboutButton").GetComponent<Button>();
aboutBtn.onClick.AddListener(OnClicAboutBtn);
var maskBtn = this.transform.Find("AboutView/mask").GetComponent<Button>();
maskBtn.onClick.AddListener(OnClickMaskBtn);
}
private void Start()
{
var package = YooAsset.YooAssets.GetPackage("DefaultPackage");
_version.text = "Version : " + package.GetPackageVersion();
}
private void OnClickPlayGameBtn()
{
SceneEventDefine.ChangeToBattleScene.SendEventMessage();
}
private void OnClicAboutBtn()
{
_aboutView.SetActive(true);
}
private void OnClickMaskBtn()
{
_aboutView.SetActive(false);
}
}