更新资产
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Stary.Evo;
|
||||
using Stary.Evo.RKTools;
|
||||
using Stary.Evo.UIFarme;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -11,6 +10,7 @@ namespace Main
|
||||
{
|
||||
public class DomainPanel : BasePanel, IBasePanel
|
||||
{
|
||||
public override string UIPath => "/DomainPanel";
|
||||
public override UITweenType TweenType => UITweenType.Fade;
|
||||
|
||||
private string[] domains;
|
||||
@@ -51,7 +51,7 @@ namespace Main
|
||||
StringEventSystem.Global.Send("X_ButtonHierarchyType",DeviceXEventHandler.HierarchyType.Domain);
|
||||
for (int i = 0; i < _domainGrids.Length; i++)
|
||||
{
|
||||
_domainGrids[i].gameObject.ObjectAddTouchEvent(OnTouchComplete);
|
||||
//_domainGrids[i].gameObject.ObjectAddTouchEvent(OnTouchComplete);
|
||||
}
|
||||
|
||||
base.OnEnter(complete);
|
||||
@@ -61,14 +61,14 @@ namespace Main
|
||||
{
|
||||
for (int i = 0; i < _domainGrids.Length; i++)
|
||||
{
|
||||
_domainGrids[i].gameObject.ObjectPauseTouchEvent();
|
||||
// _domainGrids[i].gameObject.ObjectPauseTouchEvent();
|
||||
}
|
||||
|
||||
HybridClREntrance.Global.domain = go.name;
|
||||
await HybridClREntrance.Global.OpenDomain();
|
||||
|
||||
await this.GetSystem<IPanelSystem>()
|
||||
.PushStack<ScenePanel>(packageName: "Main", parent: panelParent.transform);
|
||||
.PushStack<ScenePanel>(packageName: "Main");
|
||||
this.GetSystem<IPanelSystem>().SendEvent("SetSceneData", go.name);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace Main
|
||||
{
|
||||
for (int i = 0; i < _domainGrids.Length; i++)
|
||||
{
|
||||
_domainGrids[i].gameObject.ObjectRemoveTouchEvent();
|
||||
//_domainGrids[i].gameObject.ObjectRemoveTouchEvent();
|
||||
}
|
||||
|
||||
base.OnExit(delay);
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
"references": [
|
||||
"GUID:d1a793c2b6959e04ea45b972eaa369c8",
|
||||
"GUID:f3fa071c399c4383a9ff8115e53dfefc",
|
||||
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
||||
"GUID:10c9b58b77ad42b4193e2a393b1a9899",
|
||||
"GUID:fad681b9bfe621d4fa07f4f69c311443",
|
||||
"GUID:8c6fa7c2cd7bf784e856d9adb3dc2ada",
|
||||
"GUID:a3794f8c932de3d47b12dc5eac703d09"
|
||||
"GUID:a3794f8c932de3d47b12dc5eac703d09",
|
||||
"GUID:e34a5702dd353724aa315fb8011f08c3"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
@@ -2,9 +2,11 @@ using System.Threading.Tasks;
|
||||
using Stary.Evo;
|
||||
using Stary.Evo.UIFarme;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace Main
|
||||
{
|
||||
[Preserve]
|
||||
public class MainDomain : DomainBase, IController
|
||||
{
|
||||
public override void OnEnter(string param)
|
||||
@@ -25,7 +27,7 @@ namespace Main
|
||||
{
|
||||
await base.OnEnterAsync(param);
|
||||
Debug.Log("UnityEvo: OnEnterAsync进入成功");
|
||||
await this.GetSystem<IPanelSystem>().PushStack<DomainPanel>(parent: this.transform);
|
||||
await this.GetSystem<IPanelSystem>().PushStack<DomainPanel>();
|
||||
StringEventSystem.Global.Register("Rollback", OnRollback);
|
||||
}
|
||||
|
||||
@@ -54,7 +56,7 @@ namespace Main
|
||||
{
|
||||
//注册示例
|
||||
//RegisterSystem<IScoreSystem>(new ScoreSystem());
|
||||
RegisterSystem<IPanelSystem>(new PanelSystem());
|
||||
RegisterSystem<IPanelSystem>(new PanelSystem(new YooAssetLoader()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,19 @@ 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 webgl
|
||||
{
|
||||
public const string com_stary_evo_runtime_dll_bytes = "WebGL_com.stary.evo.runtime.dll";
|
||||
public const string com_staryevo_tools_runtime_dll_bytes = "WebGL_com.staryevo.tools.runtime.dll";
|
||||
public const string dotween_dll_bytes = "WebGL_DOTween.dll";
|
||||
public const string hotupdate_main_dll_bytes = "WebGL_HotUpdate_Main.dll";
|
||||
public const string hotupdate_main_pdb_bytes = "WebGL_HotUpdate_Main.pdb";
|
||||
public const string mscorlib_dll_bytes = "WebGL_mscorlib.dll";
|
||||
public const string system_core_dll_bytes = "WebGL_System.Core.dll";
|
||||
public const string unitask_dll_bytes = "WebGL_UniTask.dll";
|
||||
public const string unityengine_coremodule_dll_bytes = "WebGL_UnityEngine.CoreModule.dll";
|
||||
public const string yooasset_dll_bytes = "WebGL_YooAsset.dll";
|
||||
}
|
||||
}
|
||||
public static class prefabs
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ using System;
|
||||
using System.Threading.Tasks;
|
||||
using DG.Tweening;
|
||||
using Stary.Evo;
|
||||
using Stary.Evo.RKTools;
|
||||
using Stary.Evo.UIFarme;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
@@ -13,6 +12,7 @@ namespace Main
|
||||
{
|
||||
public class ScenePanel : BasePanel, IBasePanel
|
||||
{
|
||||
public override string UIPath => "/ScenePanel";
|
||||
public override UITweenType TweenType => UITweenType.Fade;
|
||||
|
||||
private ArtScene[] _scenesNames;
|
||||
@@ -70,7 +70,7 @@ namespace Main
|
||||
viewBg.transform.Find("Text").GetComponent<Text>().text = _scenesNames[i].sceneName;
|
||||
viewBg.name = _scenesNames[i].sceneName;
|
||||
_sceneGrids[i] = viewBg;
|
||||
viewBg.gameObject.ObjectAddTouchEvent(OnTouchComplete);
|
||||
//viewBg.gameObject.ObjectAddTouchEvent(OnTouchComplete);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace Main
|
||||
{
|
||||
for (int i = 0; i < _sceneGrids.Length; i++)
|
||||
{
|
||||
_sceneGrids[i].gameObject.ObjectPauseTouchEvent();
|
||||
//_sceneGrids[i].gameObject.ObjectPauseTouchEvent();
|
||||
}
|
||||
|
||||
ArtScene artScene = null;
|
||||
@@ -117,7 +117,7 @@ namespace Main
|
||||
this.UnRegisterEvent<string, string>("SetSceneData", SetSceneData);
|
||||
for (int i = 0; i < _sceneGrids.Length; i++)
|
||||
{
|
||||
_sceneGrids[i].gameObject.ObjectRemoveTouchEvent();
|
||||
//_sceneGrids[i].gameObject.ObjectRemoveTouchEvent();
|
||||
GameObject.Destroy(_sceneGrids[i].gameObject);
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace Main
|
||||
this.canvasGroup.alpha = 1;
|
||||
for (int i = 0; i < _sceneGrids.Length; i++)
|
||||
{
|
||||
_sceneGrids[i].gameObject.ObjectResumeTouchEvent();
|
||||
//_sceneGrids[i].gameObject.ObjectResumeTouchEvent();
|
||||
}
|
||||
});
|
||||
StringEventSystem.Global.Send("X_ButtonHierarchyType",DeviceXEventHandler.HierarchyType.ScenePanel);
|
||||
|
||||
Reference in New Issue
Block a user