26 lines
674 B
C#
26 lines
674 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MapVisualizer : MonoBehaviour
|
|
|
|
{
|
|
[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);
|
|
}
|
|
} |