mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
MultiplayerHUDManager.cs: fix text fade maybe
This commit is contained in:
parent
6c68bd97e0
commit
c763c24bd5
@ -193,11 +193,11 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
|
||||
if (_writingMessage)
|
||||
{
|
||||
_lastMessageTime = Time.time;
|
||||
}
|
||||
}
|
||||
|
||||
if (Time.time > _lastMessageTime + FADE_DELAY
|
||||
&& !_writingMessage
|
||||
&& Time.time > _lastMessageTime + FADE_DELAY + FADE_TIME + 1)
|
||||
if (!_writingMessage
|
||||
&& Time.time > _lastMessageTime + FADE_DELAY
|
||||
&& Time.time < _lastMessageTime + FADE_DELAY + FADE_TIME + 1)
|
||||
{
|
||||
var difference = Time.time - (_lastMessageTime + FADE_DELAY);
|
||||
var alpha = Mathf.Lerp(1, 0, difference / FADE_TIME);
|
||||
|
Loading…
Reference in New Issue
Block a user