void ButtonBack(string name) { switch (name) { case ButtonManage.ButtonNames.BeLandlord: Judge.AddOdds(2); buttons.GetComponent <ButtonManage>().SetButtons(new string[] {}); TimeManage.SetTimer(30, outPokerTimeout); player1.GetComponent <PokerManage>().outPokerAble = true; chapter.transform.parent.transform.position = gameObject.transform.position + new Vector3(0, 200, 0); chapter.GetComponent <Animator>().Play("toPlayer1"); ArrayList ps = new ArrayList(); ps.Add(allPoker[Random.Range(0, allPoker.Count)]); allPoker.Remove(ps[0]); ps.Add(allPoker[Random.Range(0, allPoker.Count)]); allPoker.Remove(ps[1]); ps.Add(allPoker[0]); allPoker.RemoveAt(0); player1.GetComponent <PokerManage>().addPokers(ps); break; case ButtonManage.ButtonNames.DoNot: SceneManager.LoadScene("1"); break; default: break; } buttons.GetComponent <ButtonManage>().SetButtons(new string[] { }); }