// Start is called before the first frame update void Start() { AnaglyphizerC anaglyph = GetComponent <AnaglyphizerC>(); GameObject canvas = GameObject.Find("Canvas"); callibrateMenu = canvas.GetComponentInChildren <CallibrateAnaglyphMenu>(true); if (anaglyph != null) { if (MaterialHolder.Anaglyph == AnaglyphizerC.Mode.Color) { anaglyph.enabled = true; anaglyph.anaglyphMat = standardAnaglyph; callibrateMenu.LoadAnaglyph(); callibrateMenu.Anaglyph = anaglyph; InitCanvas.ChangeButtonColors(new Color(0.8f, 0.8f, 0.8f), canvas); InitCanvas.ChangeSliderColor(new Color(0.8f, 0.8f, 0.8f), canvas); } else if (MaterialHolder.Anaglyph == AnaglyphizerC.Mode.True) { anaglyph.enabled = true; anaglyph.anaglyphMat = trueAnaglyph; InitCanvas.ChangeButtonColors(new Color(0.8f, 0.8f, 0.8f), canvas); InitCanvas.ChangeSliderColor(new Color(0.8f, 0.8f, 0.8f), canvas); } } }
public void turnNext(int cardIndex) //ついでにdrawnCardを更新 { turn++; preDrawnCard = drawnCard; drawnCard = cardIndex; if (CountWinners() > Wins.Count) { for (int pl = 0; pl < 4; pl++) { if (hands.hands[pl].Count == 0 && !Wins.Contains(pl)) { result.Add("player" + pl + " was " + CountWinners()); Wins.Add(pl); } } } if (turnPlayer == drawnPlayer) { result.Add("player" + turnPlayer + " losed"); init = GetComponent <InitCanvas>(); init.gameoverP.SetActive(true); string Order; Order = result[0] + "st\n\n" + result[1] + "nd\n\n" + result[2] + "rd\n\n" + result[3]; Text text = GameObject.Find("Results").GetComponent <Text>(); text.text = Order; } }
public void turnNext(int cardIndex) //ついでにdrawnCardを更新 { turn++; preDrawnCard = drawnCard; drawnCard = cardIndex; if (CountWinners() > Wins.Count) { for (int pl = 0; pl < 4; pl++) { if (hands.hands[pl].Count == 0 && !Wins.Contains(pl)) { if (pl == 0) { result.Add("You were "); } else { result.Add("Player" + pl + " was "); } Wins.Add(pl); } } } if (turnPlayer == drawnPlayer) { int zizi = hands.hands[turnPlayer][0]; UnityEngine.Debug.Log("zizi is " + (zizi % 13 + 1)); if (turnPlayer == 0) { result.Add("You were lost"); } else { result.Add("Player" + turnPlayer + " lost"); } init = GetComponent <InitCanvas>(); init.gameoverP.SetActive(true); string Order; Order = result[0] + "1st\n\n" + result[1] + "2nd\n\n" + result[2] + "3rd\n\n" + result[3]; Text text = GameObject.Find("Results").GetComponent <Text>(); text.text = Order; } }