2024-06-03 18:26:03 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using BlueWater.Audios;
|
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace BlueWater.Maps
|
|
|
|
{
|
|
|
|
public class FirstTutorialMapController : MapController
|
|
|
|
{
|
2024-06-13 16:46:37 +00:00
|
|
|
[SerializeField, Required]
|
|
|
|
protected List<Transform> EnemySpawnTransformList;
|
2024-06-03 18:26:03 +00:00
|
|
|
// TODO : Enemy 생성 후 추가
|
|
|
|
//[SerializeField, Required] protected Ork orkPrefab;
|
|
|
|
//[SerializeField, Required] protected MagicOrk magicOrkPrefab;
|
|
|
|
|
|
|
|
public override void InitializeMap()
|
|
|
|
{
|
2024-06-21 22:11:53 +00:00
|
|
|
DestroyAllObjects();
|
2024-06-03 18:26:03 +00:00
|
|
|
|
|
|
|
if (GameManager.Instance)
|
|
|
|
{
|
|
|
|
var player = GameManager.Instance.CurrentCombatPlayer;
|
|
|
|
if (player)
|
|
|
|
{
|
|
|
|
Destroy(player.gameObject);
|
|
|
|
}
|
|
|
|
|
2024-06-21 22:11:53 +00:00
|
|
|
GameManager.Instance.InstantiateCombatPlayer(PlayerSpawnLocation.position);
|
2024-06-03 18:26:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO : Enemy 생성 후 추가
|
|
|
|
//InstantiateFieldMinion(enemySpawnTransformList[0].position, orkPrefab);
|
|
|
|
//InstantiateFieldMinion(enemySpawnTransformList[1].position, magicOrkPrefab);
|
|
|
|
|
2024-06-13 16:46:37 +00:00
|
|
|
DataManager.Instance.CurrentSaveStage = SaveStage;
|
2024-06-21 22:11:53 +00:00
|
|
|
if (!string.IsNullOrEmpty(BgmName))
|
2024-06-13 16:46:37 +00:00
|
|
|
{
|
2024-06-21 22:11:53 +00:00
|
|
|
AudioManager.Instance.PlayBgm(BgmName);
|
2024-06-13 16:46:37 +00:00
|
|
|
}
|
2024-06-03 18:26:03 +00:00
|
|
|
}
|
2024-06-21 22:11:53 +00:00
|
|
|
|
|
|
|
public override void ResetMap(bool isHardReset = false)
|
|
|
|
{
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void RestartMap()
|
|
|
|
{
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void ClearMap()
|
|
|
|
{
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
2024-06-03 18:26:03 +00:00
|
|
|
}
|
|
|
|
}
|