hold音符补丁 备份
This commit is contained in:
@@ -380,8 +380,8 @@ public class ScoreManager : MonoBehaviour
|
||||
if (idolScoreSums[trackIndex] > int.MaxValue - 1) idolScoreSums[trackIndex] = int.MaxValue - 1;
|
||||
int idolActualDelta = idolScoreSums[trackIndex] - idolBefore;
|
||||
|
||||
// Only spawn popup if it is skill-related
|
||||
if (isSkillRelated && idolActualDelta != 0)
|
||||
// Spawn floating number popup for idol score change
|
||||
if (idolActualDelta != 0)
|
||||
{
|
||||
var type = idolActualDelta > 0 ? iNumberPrefabController.InstantNumberType.IscorePlus : iNumberPrefabController.InstantNumberType.IscoreMinus;
|
||||
iNumberPrefabController.SpawnForAllyStatic(trackIndex, type, idolActualDelta);
|
||||
@@ -458,9 +458,17 @@ public class ScoreManager : MonoBehaviour
|
||||
if (trackIndex < 0 || trackIndex >= idolScoreSums.Length) return;
|
||||
if (idolDelta == 0) return;
|
||||
|
||||
int idolBefore = idolScoreSums[trackIndex];
|
||||
idolScoreSums[trackIndex] += idolDelta;
|
||||
if (idolScoreSums[trackIndex] < 0) idolScoreSums[trackIndex] = 0;
|
||||
if (idolScoreSums[trackIndex] > int.MaxValue - 1) idolScoreSums[trackIndex] = int.MaxValue - 1;
|
||||
int actual = idolScoreSums[trackIndex] - idolBefore;
|
||||
|
||||
if (actual != 0)
|
||||
{
|
||||
var type = actual > 0 ? iNumberPrefabController.InstantNumberType.IscorePlus : iNumberPrefabController.InstantNumberType.IscoreMinus;
|
||||
iNumberPrefabController.SpawnForAllyStatic(trackIndex, type, actual);
|
||||
}
|
||||
|
||||
red_idolScore_sum = idolScoreSums[0];
|
||||
green_idolScore_sum = idolScoreSums[1];
|
||||
|
||||
Reference in New Issue
Block a user