Project_WL/Assets/Script/UI/TestMap/TestMapUIMgr.cs

80 lines
2.6 KiB
C#
Raw Normal View History

2025-05-05 04:07:34 +00:00
using System.Collections.Generic;
2025-04-02 01:16:20 +00:00
using UnityEngine;
public class TestMapUIMgr : MonoBehaviourSingletonTemplate<TestMapUIMgr>
{
public GameObject[] gos; // 0 캐릭터 설정, 1 몬스터 설정
2025-04-02 23:29:27 +00:00
public TM_Skills m_TM_Skills;
2025-04-02 04:15:38 +00:00
public TM_ClassChange m_TM_ClassChange;
public TM_MonsterSet m_TM_MonsterSet;
public GameObject[] gos_other; // 0 펫 체크
2025-04-02 01:16:20 +00:00
2025-05-05 04:07:34 +00:00
List<MobActor> list_MobActor = new List<MobActor>();
Vector3 MobPos = new Vector3(45, 0, 45);
bool ShowPet = true;
2025-04-03 23:12:48 +00:00
2025-04-02 01:16:20 +00:00
private void Start() { Set_TestBtns(false); }
public void Set_TestBtns(bool active)
{
for (int i = 0; i < gos.Length; i++)
gos[i].SetActive(active);
if (active) Set_Pet();
2025-04-02 01:16:20 +00:00
}
public void OnClick_Button(int button)
{
switch (button)
{
case 0: // 캐릭터 설정
2025-04-02 04:15:38 +00:00
m_TM_ClassChange.Set();
2025-04-02 01:16:20 +00:00
break;
case 1: // 몬스터 설정
m_TM_MonsterSet.Set();
2025-04-02 01:16:20 +00:00
break;
case 2: // 펫 on/off
ShowPet = !ShowPet;
Set_Pet();
break;
2025-04-02 01:16:20 +00:00
}
}
2025-04-03 23:12:48 +00:00
void Set_Pet()
{
gos_other[0].SetActive(ShowPet);
WL 리뉴얼 세션 2026-09-06~07 (#760~#800) — 전투·배경·UI·타격감 (조직 PD 로그 #746~#800 · 대화로그 §14~§24) - 전투: Knight@Attack1~3_S 3콤보(4 컨트롤러·클래스별 서브클립) · 타겟팅 4규칙(정면 우선·재타겟·즉시 공격·어그로 금지 · WLTargetingSettings) · 대쉬 후 공격(Stander@Chase_Start · DashDriver · 5 m · 사정거리+0.8 · 근거리 적 우선) · 공격 이동 FrameTable(발 접지 실측 표 · AttackRootMotion) · 충돌 반경/투사체 0.3 배(WLCollisionTuning) · 무적(임시)·펫 금지(WLGameplaySettings) - 검기: NamuFX Slash_B 배리언트 Effect_WLSwingArc 원 피팅 정합 배치 + 캘리브레이션(SlashArcMeasure · SlashTrailSettings) · 찌르기 Effect_WLStab 대기 · 램프 리본(BladeTrail · WL_BladeRibbon.shader · T_WL_BladeRibbonRamp) 보존(drawRibbon 0) - 타격감: Assets/WL/Feel(WLHitFeel · 히트스톱 0.03 · 셰이크 0.10 m · 몹 펀치 1.12 · Actor.Get_Damage 훅 1줄 · 원본 RealCamera 셰이크 결함 대체) - 배경/맵: LMHPOLY Demo_01~10 → WL_Nature01~10(프리팹·씬·NavMesh·스포너·BattleMapConfig) · 물(ToonWaterU) · 포스트 블룸 0.9/0.3 · 잔디(BruteForce·드레싱) 제거 · 마젠타 머티리얼 URP 변환 - UI: 세로 HUD(WL_HUD · 하단 5메뉴 폭 전체 · 채팅/전투 패드 숨김 · WLIngameUiOverride) · Title/TitleInfo 1080×1920 Expand + 배경 높이 fit(WLBackgroundFit) · 로딩 SortOrder_5(WLRawImageAspectSync · 초점표 8장) · Loading1~8 ASTC 6×6 - 도구: AgentScripts/*(LightProbe · WL_MapSwitch · WL760~WL800 프로브/집행/검증 · 상단 사용법 주석) · 에디터 락 프로토콜 파일(staging) - 제외(별도 커밋 예정): Assets/LMHPOLY(703 MB) · Assets/Feel(422 MB) · Assets/Shinabro(300 MB) — 에셋 스토어/구 WL 팩 원본 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 23:24:25 +00:00
// #763 — 펫이 없을 수 있다(펫 미보유 계정 · WLGameplaySettings.spawnPlayerPet = false)
var pet = MyValue.MyPC.Get_MyPet();
if (!DSUtil.CheckNull(pet)) pet.gameObject.SetActive(ShowPet);
}
2025-04-03 23:12:48 +00:00
public void MakeMob(MonsterTableData mobData)
{
2025-05-05 04:07:34 +00:00
if (list_MobActor.Count > 0)
2025-04-03 23:12:48 +00:00
{
ActorInfo.Ins.Destroy_Mob();
ActorInfo.Ins.All_DelTarget();
2025-05-05 04:07:34 +00:00
list_MobActor.Clear();
2025-04-03 23:12:48 +00:00
}
AddrResourceMgr.Ins.LoadObject<GameObject>(mobData.s_MonsterPrefab, handle =>
{
2025-05-05 04:07:34 +00:00
for (int i = 0; i < m_TM_MonsterSet.Get_MobCount(); i++)
{
var ma = DSUtil.Get_Clone<MobActor>(handle.Result);
AddrResourceMgr.Ins.Set_AddressableReleaseSelf(ma.gameObject);
ActorInfo.Ins.Add_Actor(ma, eRole.Mob, m_TM_MonsterSet.Get_SpawnID(), mobData.s_MonsterPrefab);
2025-04-03 23:12:48 +00:00
2025-05-05 04:07:34 +00:00
ma.Set(true, null, null, m_TM_MonsterSet.Get_SpawnID(), false);
ma.Set(mobData,
2025-05-05 06:29:10 +00:00
DSUtil.RandomVector_Exception_y(MobPos.x - 3f, MobPos.x + 3f, 0f, MobPos.z - 3f, MobPos.z + 3f),
2025-05-05 04:07:34 +00:00
null, 0);
2025-05-14 05:01:30 +00:00
ma.On_Regen();
2025-05-05 04:07:34 +00:00
ma.MagicID = 0;
list_MobActor.Add(ma);
}
2025-04-03 23:12:48 +00:00
ToastUI.Ins.Set(174, "스폰 아이디 : " + m_TM_MonsterSet.Get_SpawnID());
m_TM_MonsterSet.OnClick_Back();
});
}
2025-04-02 01:16:20 +00:00
}