【m】入口更新

This commit is contained in:
2025-11-05 16:48:51 +08:00
parent 87e659271b
commit 6feeef8ee4
39 changed files with 532 additions and 3578 deletions

View File

@@ -3,8 +3,8 @@ using System.Threading.Tasks;
using Stary.Evo;
using Stary.Evo.RKTools;
using Stary.Evo.UIFarme;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using YooAsset;
namespace Main
@@ -39,7 +39,7 @@ namespace Main
viewBg.transform.localPosition = Vector3.zero;
viewBg.transform.localRotation = Quaternion.identity;
viewBg.transform.localScale = Vector3.one;
viewBg.transform.Find("Text").GetComponent<TextMeshProUGUI>().text = domains[i];
viewBg.transform.Find("Text").GetComponent<Text>().text = domains[i];
viewBg.name = domains[i];
_domainGrids[i] = viewBg;
}

View File

@@ -11,6 +11,7 @@ namespace Main
{
base.OnEnter(param);
Debug.Log("UnityEvo: OnEnter进入成功");
Camera.main.GetOrAddComponent<DeviceXEventHandler>();
}
public override void OnExit()
@@ -25,7 +26,6 @@ namespace Main
await base.OnEnterAsync(param);
Debug.Log("UnityEvo: OnEnterAsync进入成功");
await this.GetSystem<IPanelSystem>().PushStack<DomainPanel>(parent: this.transform);
Camera.main.GetOrAddComponent<DeviceXEventHandler>();
StringEventSystem.Global.Register("Rollback", OnRollback);
}

View File

@@ -26,15 +26,6 @@ namespace R
public const string unityengine_coremodule_dll_bytes = "Android_UnityEngine.CoreModule.dll";
public const string yooasset_dll_bytes = "Android_YooAsset.dll";
}
}
public static class font
{
public const string arialunicodemssdf_asset = "Font_Arial Unicode MS SDF";
public const string arialunicodems_ttf = "Font_Arial Unicode MS";
public const string sweigothiclegcjksc_demilightblue_asset = "Font_SweiGothicLegCJKsc-DemiLight Blue";
public const string sweigothiclegcjksc_demilightsdf_asset = "Font_SweiGothicLegCJKsc-DemiLight SDF";
public const string sweigothiclegcjksc_demilight_ttf = "Font_SweiGothicLegCJKsc-DemiLight";
public const string sweigothiclegcjksc_medium_ttf = "Font_SweiGothicLegCJKsc-Medium";
}
public static class prefabs
{
@@ -51,6 +42,7 @@ namespace R
}
public static class sprites
{
public const string bg_png = "Sprites_bg";
}
public static class video
{

View File

@@ -4,10 +4,9 @@ using DG.Tweening;
using Stary.Evo;
using Stary.Evo.RKTools;
using Stary.Evo.UIFarme;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
using UnityEngine.UI;
using YooAsset;
namespace Main
@@ -68,7 +67,7 @@ namespace Main
viewBg.transform.localPosition = Vector3.zero;
viewBg.transform.localRotation = Quaternion.identity;
viewBg.transform.localScale = Vector3.one;
viewBg.transform.Find("Text").GetComponent<TextMeshProUGUI>().text = _scenesNames[i].sceneName;
viewBg.transform.Find("Text").GetComponent<Text>().text = _scenesNames[i].sceneName;
viewBg.name = _scenesNames[i].sceneName;
_sceneGrids[i] = viewBg;
viewBg.gameObject.ObjectAddTouchEvent(OnTouchComplete);