1
This commit is contained in:
@@ -30,7 +30,6 @@ namespace BITFALL.UX
|
||||
[SerializeField] private UXLabel seleableLabel;
|
||||
[SerializeField] private UXImage crosshairImage;
|
||||
[SerializeField] private UXImage crosshairParentImage;
|
||||
[SerializeField] private UXImage scopeImage;
|
||||
[SerializeField] private UXLabel playerNameLabel;
|
||||
[SerializeField] private UXImage playerAvatarImage;
|
||||
[SerializeField] private UXElement playerInfo;
|
||||
@@ -145,8 +144,6 @@ namespace BITFALL.UX
|
||||
|
||||
crosshairImage.visualElement.SetActive(_equipService.AllowAttack);
|
||||
|
||||
scopeImage.SetActive(_equipService.AllowScope);
|
||||
|
||||
crosshairImage.visualElement.transform.scale =
|
||||
Vector3.one *
|
||||
Mathf.Lerp(1.25f, 1, _equipService.Stable);
|
||||
@@ -163,7 +160,9 @@ namespace BITFALL.UX
|
||||
if(_equipService is null) return;
|
||||
|
||||
var currentCrosshairOpacity = crosshairParentImage.visualElement.style.opacity.value;
|
||||
crosshairParentImage.visualElement.style.opacity = Mathf.Lerp(currentCrosshairOpacity, _equipService.Zoom.Allow ? 0 : 1, Time.deltaTime * 5);
|
||||
crosshairParentImage.visualElement.style.opacity =
|
||||
_equipService.AllowScope?0:
|
||||
Mathf.Lerp(currentCrosshairOpacity, _equipService.Zoom.Allow ? 0 : 1, Time.deltaTime * 5);
|
||||
}
|
||||
|
||||
private static void OnReturn(InputAction.CallbackContext context)
|
||||
|
Reference in New Issue
Block a user