Merge branch 'temp827'
This commit is contained in:
@ -5,6 +5,9 @@ using System.Linq;
|
||||
using UnityEngine;
|
||||
using Utils;
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Program 类作为单例模式的核心管理器,负责维护和管理游戏或应用中的维度(Dimension)实例和焦点状态。
|
||||
/// 它提供了维度注册、注销、获取以及焦点维度设置的功能。
|
||||
@ -205,6 +208,8 @@ public class Program : Singleton<Program>
|
||||
|
||||
// 更新内部状态
|
||||
FocusedEntity = entity;
|
||||
if(FocusedDimension)
|
||||
FocusedDimension.focusEntity=entity;
|
||||
|
||||
// 触发事件,将新的焦点实体(或 null)作为参数传递。
|
||||
OnFocusedEntityChanged?.Invoke(FocusedEntity);
|
||||
|
Reference in New Issue
Block a user