using System.Collections; using System.Collections.Generic; using UnityEngine; public class RoomManager : MonoBehaviour { private RoomState currentState; private List players; public float propositionTime = 60; public float votingTime = 20; private float propositionCurrentTime = 0; private float votingCurrentTime = 0; /// /// Contain the infos about the current displayed question (during votes) /// private Question currentQuestion; private List questions; /// /// When this is equal to questions.Count, go to score page /// private int numberOfQuestionVoted = 0; private void Start() { propositionCurrentTime = propositionTime; votingCurrentTime = votingTime; } public void PlayerSendProposition(Proposition _proposition) { } /// /// Called when the first player clicked "Start" /// public void HostStartGame() { } /// /// Start the proposition timer /// public void StartPropositionTimer() { } /// /// Automatically called when the proposition timer has finished /// public void PropositionTimerFinished() { } /// /// Start the voting timer /// public void StartVotingTimer() { } /// /// Automatically called when the voting timer has finished /// public void VotingTimerFinished() { } /// /// Automatically called when a proposition is updated (someone has voted or a picture has been proposed) /// public void OnPropositionUpdate() { } /// /// Will generate a question with a prompt and two owners /// public void GenerateQuestion() { } /// /// Generate all the player pairs /// (players should not play against themself. /// (players should not play twice with the same person) /// public void GenerateCouples() { } /// /// is automatically called when a player connect to the room /// /// public void PlayerConnect(Player _player) { } [ContextMenu("Fake Player Connection")] private void FakePlayerConnection() { Player temp = new Player(); temp.id = System.Guid.NewGuid().ToString(); temp.SetName("Momo"); } } public enum RoomState { WaitingForPlayer, WaitingForPropositions, ShowPropositions, ShowVoters, Score }