This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-06-26 19:37:41 +08:00
parent 7d142b99e0
commit 347cf4e379
4 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace GameLogic
private List<UnitPlayerData> m_ListUnitPlayDatas = new List<UnitPlayerData>(); private List<UnitPlayerData> m_ListUnitPlayDatas = new List<UnitPlayerData>();
private float m_AddPush = 0.1f; // 初始推力值 private float m_AddPush = 0.1f; // 初始推力值
private double m_AllPush = 0; // 当前总值 public double m_AllPush = 0; // 当前总值
private int m_AllAddPush = 0;//永久增加推力值 private int m_AllAddPush = 0;//永久增加推力值
private int m_AssetID = 0; // 资源ID,用于加载资源 private int m_AssetID = 0; // 资源ID,用于加载资源
@ -280,7 +280,7 @@ namespace GameLogic
// 给进度条一个缩减回弹效果 // 给进度条一个缩减回弹效果
float originalFill = m_CurrentFillAmount; float originalFill = m_CurrentFillAmount;
float shrinkTo = Mathf.Max(0.1f, originalFill - 0.2f); // 缩到原值-0.2最小0.1 float shrinkTo = Mathf.Max(0.1f, originalFill - 0.4f); // 缩到原值-0.2最小0.1
DOTween.To( DOTween.To(
() => m_imgValue.fillAmount, () => m_imgValue.fillAmount,
x => m_imgValue.fillAmount = x, x => m_imgValue.fillAmount = x,

View File

@ -14,6 +14,7 @@ namespace GameLogic
public static int InitPower = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).InitPower; // 初始推力 public static int InitPower = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).InitPower; // 初始推力
public static float PlayerScale = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).PlayerScale; // 初始推力 public static float PlayerScale = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).PlayerScale; // 初始推力
public static string GmPass = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).GmPassworld; // Gm解锁密码 public static string GmPass = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).GmPassworld; // Gm解锁密码
public static float JszPower = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).JszPower; // Gm解锁密码
public static float WaiXingScale = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).WaiXingScale; public static float WaiXingScale = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).WaiXingScale;
public static float WaiXingBeiLv = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).WaiXingBeiLv; public static float WaiXingBeiLv = ConfigSystem.Instance.Tables.TbSystemConfig.Get(1).WaiXingBeiLv;
public static bool isGmPass = false; // 是否解锁 public static bool isGmPass = false; // 是否解锁

View File

@ -880,6 +880,7 @@ namespace GameLogic
eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).AddListener(() => eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).AddListener(() =>
{ {
//hItemActors[1].actor.SetCurrenFill(); //hItemActors[1].actor.SetCurrenFill();
targetActor.m_AllPush -= EventConts.JszPower * 10;
targetActor.SetCurrenFill(); targetActor.SetCurrenFill();
//eGo.transform.parent.parent.parent.parent.GetComponent<ActorHItem>().SetCurrenFill(); //eGo.transform.parent.parent.parent.parent.GetComponent<ActorHItem>().SetCurrenFill();
}); });
@ -904,6 +905,7 @@ namespace GameLogic
eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).RemoveAllListeners(); eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).RemoveAllListeners();
eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).AddListener(() => eGo.GetComponent<SignalReceiver>().GetReaction(JszSignal).AddListener(() =>
{ {
targetActor.m_AllPush -= EventConts.JszPower;
targetActor.SetCurrenFill(); targetActor.SetCurrenFill();
//eGo.transform.parent.parent.parent.parent.GetComponent<ActorHItem>().SetCurrenFill(); //eGo.transform.parent.parent.parent.parent.GetComponent<ActorHItem>().SetCurrenFill();
}); });