public void TryInitiateRestartVote(GameObject instigator) { if (voteInProgress || voteRestartSuccess) { return; } votes.Clear(); countTime = 0f; prevSecond = 0; voteType = VoteType.RestartRound; votePolicy = VotePolicy.MajorityRules; voteInProgress = true; RpcOpenVoteWindow("Vote restart initiated by", instigator.name, CountAmountString(), (30 - prevSecond).ToString()); Logger.Log($"Vote restart initiated by {instigator.name}", Category.Admin); }
public void TryInitiateRestartVote(GameObject instigator) { if (voteInProgress || voteRestartSuccess) { return; } if (isCooldownActive) { Chat.AddExamineMsgFromServer(instigator, $"Too soon to trigger a restart vote!"); return; } votes.Clear(); countTime = 0f; prevSecond = 0; voteType = VoteType.RestartRound; votePolicy = VotePolicy.MajorityRules; voteInProgress = true; RpcOpenVoteWindow("Vote restart initiated by", instigator.name, CountAmountString(), (30 - prevSecond).ToString()); Logger.Log($"Vote restart initiated by {instigator.name}", Category.Admin); }