OnlyNPC:Part1
This commit is contained in:
@@ -347,13 +347,7 @@ namespace Hallucinate.UI
|
||||
particle.style.opacity = 0f;
|
||||
particle.style.scale = Vector3.one;
|
||||
|
||||
Sequence.Create()
|
||||
.Group(Tween.Custom(0f, 0.6f, duration: 0.05f, onValueChange: val => particle.style.opacity = val))
|
||||
.Chain(Tween.Custom(0.6f, 0f, duration: 0.35f, onValueChange: val => particle.style.opacity = val))
|
||||
.Group(Tween.Custom(1f, 0.2f, duration: 0.4f, onValueChange: val => {
|
||||
particle.style.scale = new StyleScale(new Scale(new Vector3(val, val, 1f)));
|
||||
}))
|
||||
.OnComplete(() => particle.style.display = DisplayStyle.None);
|
||||
|
||||
}
|
||||
|
||||
private float GetCurrentScale() => (_uiDocument != null && _uiDocument.panelSettings != null) ? _uiDocument.panelSettings.scale : 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user