26 lines
674 B
C#
Raw Normal View History

2025-10-08 16:31:53 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapVisualizer : MonoBehaviour
{
2025-10-10 00:53:27 +08:00
[HideInInspector] public MapListener mapListener;
2025-10-12 02:32:13 +08:00
private GameObject statue_prefab;
2025-10-08 16:31:53 +08:00
private void Start()
{
2025-10-12 02:32:13 +08:00
statue_prefab = mapListener.m_recv_find_room_prefabs_use_room_type(HomeMapSO.RoomType.StatueRoom);
2025-10-09 22:33:05 +08:00
this.self_initialize_room_data();
2025-10-08 16:31:53 +08:00
}
2025-10-10 00:53:27 +08:00
// TODO: 从存档文件读取数据
2025-10-08 16:31:53 +08:00
2025-10-09 22:33:05 +08:00
// 初始化房间数据, 创建默认的雕像房间
private void self_initialize_room_data()
2025-10-08 16:31:53 +08:00
{
2025-10-12 02:32:13 +08:00
mapListener.m_send_SOMap_create_a_room(position: new Vector2Int(0, 0), statue_prefab);
2025-10-08 16:31:53 +08:00
}
}