@ -2255,7 +2255,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 224813276203911662}
m_Direction: 2
m_Value: 1
m_Size: 0.9840466
m_Size: 0.92140794
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
@ -149,20 +149,26 @@ namespace Fungus
if (narrativeLogActive)
{
// Switch menu off
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 0f, 0.2f).setOnUpdate((t) => {
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 0f, .2f)
.setEase(LeanTweenType.easeOutQuint)
.setOnUpdate((t) => {
narrativeLogMenuGroup.alpha = t;
}).setOnComplete(() => {
narrativeLogMenuGroup.alpha = 0f;
});
}
else
// Switch menu on
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 1f, 0.2f).setOnUpdate((t) => {
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 1f, .2f)
narrativeLogMenuGroup.alpha = 1f;
narrativeLogActive = !narrativeLogActive;
@ -196,7 +196,9 @@ namespace Fungus
if (saveMenuActive)
LeanTween.value(saveMenuGroup.gameObject, saveMenuGroup.alpha, 0f, 0.2f).setOnUpdate( (t) => {
LeanTween.value(saveMenuGroup.gameObject, saveMenuGroup.alpha, 0f, 0.2f)
.setOnUpdate( (t) => {
saveMenuGroup.alpha = t;
}).setOnComplete( () => {
saveMenuGroup.alpha = 0f;
@ -205,7 +207,9 @@ namespace Fungus
LeanTween.value(saveMenuGroup.gameObject, saveMenuGroup.alpha, 1f, 0.2f).setOnUpdate( (t) => {
LeanTween.value(saveMenuGroup.gameObject, saveMenuGroup.alpha, 1f, 0.2f)
saveMenuGroup.alpha = 1f;