Exemplo n.º 1
0
    // 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>();
    }
Exemplo n.º 2
0
 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;
         }
     }
 }
Exemplo n.º 3
0
 public void SpinPrepare()
 {
     ruletteMaker0.CreateRulette(getInfo.GetData(0));
 }