몬스터 공격 시 캐릭터 방어력 값 참조 추가 및 리워드 코드 추가
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Assets.PixelFantasy.PixelMonsters.Common.Scripts;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -8,6 +9,7 @@ namespace TON
|
||||
{
|
||||
public class MonsterSpawner : MonoBehaviour
|
||||
{
|
||||
private MonsterBase _monsterBase;
|
||||
public Transform[] spawnPoints; // 스폰 위치 배열
|
||||
|
||||
private List<GameObject> monsterPool; // 몬스터 오브젝트 풀
|
||||
@@ -76,6 +78,9 @@ namespace TON
|
||||
private void StartNextWave()
|
||||
{
|
||||
currentWave++;
|
||||
|
||||
StageManager.Singleton.SetWaveData(currentWave); // 웨이브 정보 전달.
|
||||
|
||||
if (currentWave > TOTAL_WAVES)
|
||||
{
|
||||
// Debug.Log("모든 웨이브 완료!");
|
||||
|
||||
Reference in New Issue
Block a user