Skip to content

Commit 1720e74

Browse files
committed
making scenarios start automatically when selected
(cherry picked from commit 3f95398)
1 parent 7337f72 commit 1720e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/Scripts/Gameplay/UI/NetworkSimulationUIMediator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ void OnScenarioChanged(int optionIndex)
126126
{
127127
var scenarioName = m_ScenariosDropdown.options[optionIndex].text;
128128
m_NetworkSimulator.Scenario = m_Scenarios.ContainsKey(scenarioName) ? m_Scenarios[scenarioName] : null;
129+
m_NetworkSimulator.Scenario?.Start(m_NetworkSimulator);
129130
UpdateScenarioButton();
130131
}
131132

0 commit comments

Comments
 (0)