void Start() { _roundMetadataList[0] = new RoundMetadata { NewspaperFrequency = 10.0f, PhoneCallFrequency = 10.0f, RoundDuration = 60 * 2, RoundCount = 0 }; _roundMetadataList[1] = new RoundMetadata { NewspaperFrequency = 8.0f, PhoneCallFrequency = 8.0f, RoundDuration = 60 * 3, RoundCount = 1 }; _roundMetadataList[2] = new RoundMetadata { NewspaperFrequency = 5.0f, PhoneCallFrequency = 5.0f, RoundDuration = 60 * 3, RoundCount = 2 }; Invoke("GameStart", 10.0f); _currentRound = 0; }
private void StartRound() { _currentRound++; RoundMetadata metadata = _roundMetadataList[_currentRound]; _roundCounter = metadata.RoundDuration; UIManager.Instance().SetTimer(metadata.RoundDuration); UIManager.Instance().SetRound(metadata.RoundCount); }