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