超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -8,32 +8,29 @@ using Transform = UnityEngine.Transform;
|
||||
public class teamSettingPanel : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 编队页面顶父级对象,用于控制显示隐藏等操作
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
[SerializeField]
|
||||
public GameObject teamSettingPanelObj;
|
||||
/// <summary>
|
||||
/// ui层编队显示,包含五个组件
|
||||
/// Documentation text normalized.
|
||||
/// </summary>
|
||||
[SerializeField]
|
||||
public GameObject[] teamElementsObj;
|
||||
/// <summary>
|
||||
/// 编队显示上层切换编队预设按钮
|
||||
/// Documentation text normalized.
|
||||
/// </summary>
|
||||
[SerializeField] public TeamIndexSetterView[] teamSettingButtonStatusObj;
|
||||
/// <summary>
|
||||
/// team用角色数据库总表
|
||||
/// Documentation text normalized.
|
||||
/// </summary>
|
||||
[SerializeField]
|
||||
public TeamCharacterList teamCharacterList;
|
||||
/// <summary>
|
||||
/// 等级贴图表
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
[SerializeField]
|
||||
public TeamCharacterLevelData teamCharacterLevelData;
|
||||
/// <summary>
|
||||
/// 左侧角色选择页组件
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
[SerializeField]
|
||||
public GameObject teamCharacterPrefab;
|
||||
[SerializeField]
|
||||
@@ -84,7 +81,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 切换预设编队
|
||||
/// Documentation text normalized.
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
public void updateSelectedTeam(int index)
|
||||
@@ -96,7 +93,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
{
|
||||
if (teamCharacterList == null)
|
||||
{
|
||||
Debug.LogError("teamCharacterList 缺失");
|
||||
Debug.LogError("teamCharacterList is missing.");
|
||||
return null;
|
||||
}
|
||||
foreach (TeamCharacterDataInfo tcdi in teamCharacterList.characters)
|
||||
@@ -106,7 +103,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
return tcdi;
|
||||
}
|
||||
}
|
||||
Debug.LogWarning($"未找到{characterID}对应的角色信息");;
|
||||
Debug.LogWarning($"Character data not found for characterID={characterID}.");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -114,7 +111,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
{
|
||||
if(level==null)
|
||||
{
|
||||
Debug.LogWarning("level为空,无法获取对应等级贴图");
|
||||
Debug.LogWarning("Level is null, cannot resolve level sprite.");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -129,13 +126,12 @@ public class teamSettingPanel : MonoBehaviour
|
||||
case "C":
|
||||
return teamCharacterLevelData.LevelCSprite;
|
||||
default:
|
||||
Debug.LogWarning($"未找到对应等级贴图,当前等级为:{level}");
|
||||
Debug.LogWarning($"No level sprite mapped for level '{level}'.");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 把队列恢复到空视图状态
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
public void clearTeamSettingElements()
|
||||
{
|
||||
foreach (GameObject gameObject in teamElementsObj)
|
||||
@@ -223,8 +219,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取当前可选入队伍的角色列表,并显示在界面上
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
public void updateSelectableCharacterViewList()
|
||||
{
|
||||
foreach (Transform child in teamCharacterViewContent.transform)
|
||||
@@ -266,8 +261,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 用于保证team内对象的选中状态一致
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
public void updateTeamCharacterSelectedStatus()
|
||||
{
|
||||
int currentSelectedCharacter = teamManager.currentSelectedTeamCharacter;
|
||||
@@ -289,8 +283,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 右切换编队信息
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
public void rightChangeTeamSettingIndex()
|
||||
{
|
||||
int currentSelectedTeam = teamManager.currentSelectedTeam;
|
||||
@@ -300,8 +293,7 @@ public class teamSettingPanel : MonoBehaviour
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 左切换编队信息
|
||||
/// </summary>
|
||||
/// Documentation text normalized.
|
||||
public void leftChangeTeamSettingIndex()
|
||||
{
|
||||
int currentSelectedTeam = teamManager.currentSelectedTeam;
|
||||
|
||||
Reference in New Issue
Block a user