超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class settleTeamPrefab : MonoBehaviour
|
||||
@@ -11,24 +11,24 @@ public class settleTeamPrefab : MonoBehaviour
|
||||
[Header("this_Ally_settlement")]
|
||||
public Text thisAlly_earnExp;
|
||||
public Text this_allyIdolScore;
|
||||
[Header("本场贡献")]
|
||||
[Header("Inspector")]
|
||||
public Text this_allyDamageDealt;
|
||||
public Text this_allyDamageTook;
|
||||
public Text this_allyHealthRestored;
|
||||
public Text this_allyManaRestored;
|
||||
[Header("展示详细贡献按钮")]
|
||||
[Header("Inspector")]
|
||||
public Button displayDetailContributionButton;
|
||||
public GameObject detailContributionGO;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// 初始化:详细贡献面板默认不激活
|
||||
// Documentation text normalized.
|
||||
if (detailContributionGO != null)
|
||||
{
|
||||
detailContributionGO.SetActive(false);
|
||||
}
|
||||
|
||||
// 为按钮添加点击监听
|
||||
// Documentation text normalized.
|
||||
if (displayDetailContributionButton != null)
|
||||
{
|
||||
displayDetailContributionButton.onClick.AddListener(OnDisplayDetailContributionButtonClicked);
|
||||
@@ -37,7 +37,7 @@ public class settleTeamPrefab : MonoBehaviour
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
// 移除监听以避免内存泄漏
|
||||
// Documentation text normalized.
|
||||
if (displayDetailContributionButton != null)
|
||||
{
|
||||
displayDetailContributionButton.onClick.RemoveListener(OnDisplayDetailContributionButtonClicked);
|
||||
@@ -52,7 +52,7 @@ public class settleTeamPrefab : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
// 切换详细贡献面板的激活状态
|
||||
// Documentation text normalized.
|
||||
bool isCurrentlyActive = detailContributionGO.activeSelf;
|
||||
detailContributionGO.SetActive(!isCurrentlyActive);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user