好多新内容
This commit is contained in:
@@ -59,6 +59,12 @@ public class loadDetailsPrefab : MonoBehaviour
|
||||
}
|
||||
|
||||
preferLeftOfCursor = ShouldDisplayOnLeft(type, heroLevel);
|
||||
// 宿主 GameObject 处于非激活状态时无法启动协程(会抛异常)。此时直接跳过——
|
||||
// 悬浮详情本就依附于激活的界面,宿主未激活时不显示详情是合理且无副作用的。
|
||||
if (!isActiveAndEnabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
showCoroutine = StartCoroutine(ShowDetailsDelayed(type, name, status, description, position, heroLevel));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user