// Start is called before the first frame update void Start() { //今とりあえずPlayer1だけでやってる // ruletteMaker0 = datadisks[0].GetComponent <RouletteMaker>(); ruletteMaker1 = datadisks[1].GetComponent <RouletteMaker>(); getInfo = GameObject.Find("GameMaster").GetComponent <GetInfo>(); //Debug.Log(getInfo.GetData(0)); //ルーレット作成メソッドの呼び出し ruletteMaker0.CreateRulette(getInfo.GetData(0)); diskSpin0 = datadisks[0].GetComponent <DiskSpin>(); diskSpin1 = datadisks[1].GetComponent <DiskSpin>(); }
public void OnClick(Button button) { for (int i = 0; i < buttons.Count; i++) { if (buttons[i] == button) { //選択されているボタンを赤色に buttons[i].image.color = btnColor2; //ここをなんかID取得みたいにするのがいいんじゃないか GameObject data = diskDataList.Data[i]; getInfo.SetData(data, player); Debug.Log(getInfo.GetData(player)); //getInfo.SetFigureMoveData0(data); } else { buttons[i].image.color = btnColor1; } } }
public void SpinPrepare() { ruletteMaker0.CreateRulette(getInfo.GetData(0)); }