|
|
@ -149,20 +149,26 @@ namespace Fungus |
|
|
|
if (narrativeLogActive) |
|
|
|
if (narrativeLogActive) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Switch menu off |
|
|
|
// 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; |
|
|
|
narrativeLogMenuGroup.alpha = t; |
|
|
|
}).setOnComplete(() => { |
|
|
|
}).setOnComplete(() => { |
|
|
|
narrativeLogMenuGroup.alpha = 0f; |
|
|
|
narrativeLogMenuGroup.alpha = 0f; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Switch menu on |
|
|
|
// Switch menu on |
|
|
|
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 1f, 0.2f).setOnUpdate((t) => { |
|
|
|
LeanTween.value(narrativeLogMenuGroup.gameObject, narrativeLogMenuGroup.alpha, 1f, .2f) |
|
|
|
|
|
|
|
.setEase(LeanTweenType.easeOutQuint) |
|
|
|
|
|
|
|
.setOnUpdate((t) => { |
|
|
|
narrativeLogMenuGroup.alpha = t; |
|
|
|
narrativeLogMenuGroup.alpha = t; |
|
|
|
}).setOnComplete(() => { |
|
|
|
}).setOnComplete(() => { |
|
|
|
narrativeLogMenuGroup.alpha = 1f; |
|
|
|
narrativeLogMenuGroup.alpha = 1f; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
narrativeLogActive = !narrativeLogActive; |
|
|
|
narrativeLogActive = !narrativeLogActive; |
|
|
|