mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
22 lines
673 B
C#
22 lines
673 B
C#
using MiraAPI.Example.Extension.Roles;
|
|
using MiraAPI.GameEnd;
|
|
using MiraAPI.Utilities;
|
|
using UnityEngine;
|
|
|
|
namespace MiraAPI.Example.Extension.GameOver;
|
|
|
|
public class NeutralKillerGameOver : CustomGameOver
|
|
{
|
|
public override bool VerifyCondition(PlayerControl playerControl, NetworkedPlayerInfo[] winners)
|
|
{
|
|
return winners is [{ Role: NeutralKillerRole }];
|
|
}
|
|
|
|
public override void AfterEndGameSetup(EndGameManager endGameManager)
|
|
{
|
|
endGameManager.WinText.text = "Outcast Killer Wins!";
|
|
endGameManager.WinText.color = Color.magenta;
|
|
endGameManager.BackgroundBar.material.SetColor(ShaderID.Color, Color.magenta);
|
|
}
|
|
}
|