chore: initial commit

This commit is contained in:
2026-05-08 11:04:00 +08:00
commit f55d2a57c3
6278 changed files with 866081 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System;
using UnityEngine;
namespace BaseGames.Player
{
/// <summary>
/// 武器管理器Phase 1 实现)。
/// 架构 05_PlayerModule §7ActiveWeaponWeaponSOOnWeaponChanged 事件。
/// ⚠️ 无 Equip() 方法,无 WeaponInstance 类。
/// Phase 2 §2.3:接入 FormController.OnFormChanged。
/// </summary>
public class WeaponManager : MonoBehaviour
{
[SerializeField] private WeaponSO _startingWeapon;
public WeaponSO ActiveWeapon { get; private set; }
public event Action<WeaponSO> OnWeaponChanged;
private void Start()
{
if (_startingWeapon != null)
{
ActiveWeapon = _startingWeapon;
OnWeaponChanged?.Invoke(ActiveWeapon);
}
}
}
}