+ SpineDamageableProps Idle이 반복하지 않는 현상 수정 + 플레이어 체력이 부족할 때, Vignette 효과 줄이고, 쉽게 수정할 수 있게 변경 + 보스 처치 후 일정시간 무적 효과 적용 + MiniSandMole 죽지 않는 버그 수정 + Bgm 3종 추가 및 BgmSo 수정
57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
using BlueWater.Audios;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWater.Maps
|
|
{
|
|
public class FirstTutorialMapController : MapController
|
|
{
|
|
[SerializeField, Required]
|
|
protected List<Transform> EnemySpawnTransformList;
|
|
// TODO : Enemy 생성 후 추가
|
|
//[SerializeField, Required] protected Ork orkPrefab;
|
|
//[SerializeField, Required] protected MagicOrk magicOrkPrefab;
|
|
|
|
public override void InitializeMap()
|
|
{
|
|
DestroyAllObjects();
|
|
|
|
if (GameManager.Instance)
|
|
{
|
|
var player = GameManager.Instance.CurrentCombatPlayer;
|
|
if (player)
|
|
{
|
|
Destroy(player.gameObject);
|
|
}
|
|
|
|
GameManager.Instance.InstantiateCombatPlayer(PlayerSpawnLocation.position);
|
|
}
|
|
|
|
// TODO : Enemy 생성 후 추가
|
|
//InstantiateFieldMinion(enemySpawnTransformList[0].position, orkPrefab);
|
|
//InstantiateFieldMinion(enemySpawnTransformList[1].position, magicOrkPrefab);
|
|
|
|
DataManager.Instance.CurrentSaveStage = SaveStage;
|
|
if (!string.IsNullOrEmpty(BgmName))
|
|
{
|
|
AudioManager.Instance.PlayBgm(BgmName);
|
|
}
|
|
}
|
|
|
|
public override void ResetMap(bool isHardReset = false)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public override void RestartMap()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public override void ClearMap(GameObject bossObject)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|
|
} |