一些修复和优化
This commit is contained in:
@@ -793,7 +793,7 @@ public class eqpmtDesPrefab : MonoBehaviour
|
||||
case equipmentSO.EquipmentSpecialEffectType.ScoreEfficiency: return "得分效率";
|
||||
case equipmentSO.EquipmentSpecialEffectType.HitManaRecovery: return "hit法力恢复";
|
||||
case equipmentSO.EquipmentSpecialEffectType.HitDamageMultiplier: return "hit伤害倍率";
|
||||
case equipmentSO.EquipmentSpecialEffectType.HpLoseBase: return "hplosebase";
|
||||
case equipmentSO.EquipmentSpecialEffectType.HpLoseBase: return "基本生命损失";
|
||||
case equipmentSO.EquipmentSpecialEffectType.Skill: return "技能";
|
||||
default: return effectType.ToString();
|
||||
}
|
||||
@@ -848,4 +848,3 @@ public class eqpmtDesPrefab : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -68,6 +68,25 @@ public class equipItemPrefab : MonoBehaviour, IBeginDragHandler, IDragHandler, I
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (spawnedDescription != null)
|
||||
{
|
||||
Destroy(spawnedDescription);
|
||||
spawnedDescription = null;
|
||||
}
|
||||
|
||||
if (dragGhost != null)
|
||||
{
|
||||
Destroy(dragGhost);
|
||||
dragGhost = null;
|
||||
dragGhostRect = null;
|
||||
}
|
||||
|
||||
suppressNextClick = false;
|
||||
isDraggingWithLeftButton = false;
|
||||
}
|
||||
|
||||
public void Bind(equipmentSO so, Action<equipmentSO> onClick = null, Func<equipmentSO, bool> onRightClick = null)
|
||||
{
|
||||
itemSO = so;
|
||||
|
||||
@@ -107,6 +107,11 @@ public class equipmentSO : ScriptableObject
|
||||
return maxLevelEffects != null && maxLevelEffects.Length > 0;
|
||||
}
|
||||
|
||||
public bool IsMaxLevelEffectActive()
|
||||
{
|
||||
return level >= 20 && HasFinalDreamEffect();
|
||||
}
|
||||
|
||||
public int GetTierStageIndex()
|
||||
{
|
||||
if (level >= 20)
|
||||
|
||||
Reference in New Issue
Block a user