2025-10-12 02:32:13 +08:00

27 lines
724 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapVisualizer : MonoBehaviour
{
[HideInInspector] public HomeMapSO SOHomeMap;
[HideInInspector] public MapListener mapListener;
private GameObject statue_prefab;
private void Start()
{
statue_prefab = mapListener.m_recv_find_room_prefabs_use_room_type(HomeMapSO.RoomType.StatueRoom);
this.self_initialize_room_data();
}
// TODO: 从存档文件读取数据
// 初始化房间数据, 创建默认的雕像房间
private void self_initialize_room_data()
{
mapListener.m_send_SOMap_create_a_room(position: new Vector2Int(0, 0), statue_prefab);
}
}