Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assets/BossRoom/Scenes/PostGame.unity
Git LFS file not shown
14 changes: 10 additions & 4 deletions Assets/BossRoom/Scripts/Client/UI/PostGameUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace BossRoom.Visual
public class PostGameUI : MonoBehaviour
{
[SerializeField]
private RawImage m_Background;
private Image m_EndMessage;

[SerializeField]
private Image m_EndMessage;
private Light m_SceneLight;

[SerializeField]
private GameObject m_ReplayButton;
Expand All @@ -30,6 +30,12 @@ public class PostGameUI : MonoBehaviour
[SerializeField]
private Sprite m_LoseSprite;

[SerializeField]
private Color m_WinLightColor;

[SerializeField]
private Color m_LoseLightColor;

void Start()
{
GameObject GamePortalGO = GameObject.FindGameObjectWithTag("GameNetPortal");
Expand Down Expand Up @@ -60,13 +66,13 @@ private void OnGameWonChanged(byte prevVal, byte currentVal)
if (m_PostGameData.GameBannerState.Value == (byte)PostGameData.BannerState.Won )
{
m_EndMessage.sprite = m_WinSprite;
m_Background.color = Color.white;
m_SceneLight.color = m_WinLightColor;
m_EndMessage.color = Color.white;
}
else if( m_PostGameData.GameBannerState.Value == (byte)PostGameData.BannerState.Lost )
{
m_EndMessage.sprite = m_LoseSprite;
m_Background.color = new Color(1.0f, 0.5f, 0.5f);
m_SceneLight.color = m_LoseLightColor;
m_EndMessage.color = Color.white;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class ServerBossRoomState : GameStateBehaviour
private ServerGameNetPortal m_ServerNetPortal;

// Wait time constants for switching to post game after the game is won or lost
private const float k_WinDelay = 5.0f;
private const float k_WinDelay = 7.0f;
private const float k_LoseDelay = 2.5f;

/// <summary>
Expand Down