건설 인터랙션 관련 버그 수정 및 건설 데이터 구조 개선
건설 인터랙션 시 움직이지 못하는 문제 수정 2개로 분리되어 있던 타워 데이터를 하나로 통합 - 대신 타워가 아닌 건물도 공격력 등을 정의할 수 있음
This commit is contained in:
@@ -3,6 +3,7 @@ using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
using TMPro;
|
||||
using Northbound.Data;
|
||||
|
||||
namespace Northbound
|
||||
{
|
||||
@@ -196,7 +197,7 @@ namespace Northbound
|
||||
/// <summary>
|
||||
/// 개별 슬롯 버튼 생성
|
||||
/// </summary>
|
||||
private void CreateSlot(BuildingData buildingData, int index)
|
||||
private void CreateSlot(TowerData buildingData, int index)
|
||||
{
|
||||
GameObject slotObj = Instantiate(slotButtonPrefab, slotContainer);
|
||||
BuildingSlotButton slotButton = slotObj.GetComponent<BuildingSlotButton>();
|
||||
|
||||
Reference in New Issue
Block a user