Add prototype gameplay loop with character/battlefield assets and server game APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-10-20 18:50:00 +08:00
co-authored by Cursor
parent 79369e4473
commit 6c64210331
833 changed files with 998079 additions and 1042 deletions
@@ -6,12 +6,12 @@ using YooAsset;
namespace HotUpdate
{
/// <summary>
/// M3:加载示例角色 MaleExplorer 进场景。
/// 加载人物角色 CaoCao 进广场(地址 CaoCao)。
/// </summary>
public sealed class CharacterSpawner : MonoBehaviour
{
public const string PrefabAddress = "MaleExplorer";
public const string EditorPrefabPath = "Assets/Bundles/Characters/MaleExplorer/MaleExplorer.prefab";
public const string PrefabAddress = "CaoCao";
public const string EditorPrefabPath = "Assets/Bundles/Characters/Human/CaoCao/CaoCao.prefab";
public const string ArtPackageName = "Art";
BootContext _ctx;
@@ -58,7 +58,7 @@ namespace HotUpdate
if (prefab == null)
{
Debug.LogError("[CharacterSpawner] MaleExplorer prefab not found");
Debug.LogError("[CharacterSpawner] CaoCao prefab not found");
yield break;
}
@@ -66,7 +66,7 @@ namespace HotUpdate
Destroy(_instance);
_instance = Instantiate(prefab);
_instance.name = "MaleExplorer_Runtime";
_instance.name = "CaoCao_Runtime";
var plaza = GameObject.Find("TownSquare_Runtime");
var y = GroundSit.Height(Vector3.zero, plaza != null ? plaza.transform : null);
_instance.transform.position = new Vector3(0f, y, 0f);