コード例 #1
0
        private async void Cancel_Click(object sender, EventArgs e)
        {
            lightsManager.DefaultColor  = initialLobbyColor;
            lightsManager.ImpostorColor = initialImpostorColor;
            lightsManager.CrewmateColor = initialCrewmateColor;
            await lightsManager.EnableLights(initialLights.Select(l => l.Id).ToArray());

            await lightsManager.SwitchToDefaultColor();
        }