Land Explorer in HomeCamp with boot loading, journal UI, and CDN publish tooling.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,12 +6,12 @@ using YooAsset;
|
||||
namespace HotUpdate
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载人物角色 CaoCao 的独立预览(地址 CaoCao)。
|
||||
/// 加载人物角色 Explorer 的独立预览(地址 CaoCao)。
|
||||
/// </summary>
|
||||
public sealed class CharacterSpawner : MonoBehaviour
|
||||
{
|
||||
public const string PrefabAddress = "CaoCao";
|
||||
public const string EditorPrefabPath = "Assets/Bundles/Characters/Human/CaoCao/CaoCao.prefab";
|
||||
public const string PrefabAddress = "Explorer";
|
||||
public const string EditorPrefabPath = "Assets/Bundles/Characters/Human/Explorer/Explorer.prefab";
|
||||
public const string ArtPackageName = "Art";
|
||||
|
||||
BootContext _ctx;
|
||||
@@ -58,7 +58,7 @@ namespace HotUpdate
|
||||
|
||||
if (prefab == null)
|
||||
{
|
||||
Debug.LogError("[CharacterSpawner] CaoCao prefab not found");
|
||||
Debug.LogError("[CharacterSpawner] Explorer prefab not found");
|
||||
yield break;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace HotUpdate
|
||||
Destroy(_instance);
|
||||
|
||||
_instance = Instantiate(prefab);
|
||||
_instance.name = "CaoCao_Runtime";
|
||||
_instance.name = "Explorer_Runtime";
|
||||
var y = GroundSit.Height(Vector3.zero, null);
|
||||
_instance.transform.position = new Vector3(0f, y, 0f);
|
||||
DontDestroyOnLoad(_instance);
|
||||
|
||||
Reference in New Issue
Block a user