yyl
1 天以前 7f9ec6d10ebb5d741b10e2b4168b11ad0ebb22cd
Main/System/Battle/UIComp/BattleTips.cs
@@ -35,7 +35,7 @@
    #region 私有字段
    
    // 移除 [SerializeField],controller 不应该被序列化
    private BattleFloatingUIController controller;
    public BattleFloatingUIController controller;
    
    #endregion
@@ -165,8 +165,6 @@
    /// </summary>
    private void InitController()
    {
        if (controller != null) return;
        if (floatingConfig == null)
        {
            Debug.LogError($"[BattleTips] FloatingConfig 未配置! GameObject: {gameObject.name}");
@@ -186,7 +184,7 @@
    /// </summary>
    private void EnsureControllerInitialized()
    {
        if (controller == null)
        if (controller == null || !controller.IsValid())
            InitController();
    }