Skip to content

Commit

Permalink
Merge pull request #7 from bamboooo-dev/task/theme
Browse files Browse the repository at this point in the history
一般向けのお題を追加したから
  • Loading branch information
MONAKA0721 authored Jul 13, 2021
2 parents c93cad7 + 1629033 commit 18c8650
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Assets/Scripts/04_CreateRoom/ConfirmCreateRoomButton.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -85,33 +86,24 @@ private IEnumerator PostRequestAsync()

private int[] RandomThemeIDs(int categoryID)
{
int start = 0;
int end = 0;
List<int> numbers = new List<int>();

switch (categoryID)
{
case 0: // おまかせ
start = 1;
end = 40;
case 0: // 一般向け
numbers = (Enumerable.Range(1, 40).Concat(Enumerable.Range(121, 40))).ToList();
break;
case 1: // エンジニア
start = 41;
end = 80;
numbers = Enumerable.Range(41, 40).ToList();
break;
case 2: // 18禁
start = 81;
end = 120;
numbers = Enumerable.Range(81, 40).ToList();
break;
}

int count = 3;
int[] ids = new int[count];

List<int> numbers = new List<int>();

for (int i = start; i <= end; i++)
{
numbers.Add(i);
}
UnityEngine.Random.InitState(System.DateTime.Now.Millisecond);
for (int i = 0; i < count; i++)
{
Expand Down

0 comments on commit 18c8650

Please sign in to comment.