Add prototype gameplay loop with character/battlefield assets and server game APIs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user