void Start() { UAE = FindObjectOfType <UnityAdsExample>(); rdm = FindObjectOfType <RoundDataManager>(); hg = FindObjectOfType <HostGame>(); gm = FindObjectOfType <GameManager>(); pm = FindObjectOfType <PlayerManager>(); um = FindObjectOfType <UIManager>(); artNoun = aNoun.text.Split(separators, System.StringSplitOptions.RemoveEmptyEntries); um.PocketReset(); }
public void ThreadDisplay() { rdm = FindObjectOfType <RoundDataManager>(); var ch = rdm.chains[0]; //int round = 0; picPos = new Vector3(origPic.position.x, (origPic.position.y - (650 * round)), origPic.position.z); while (true) { if (ch.guesses.Count <= round) { var pic = Instantiate(picPrefab, picPos, Quaternion.identity, origPic); var picText = pic.GetComponentInChildren <Text>(); picText.text = ch.guesses[round]; round++; } else { break; } if (ch.pictures.Count <= round) { var pac = Instantiate(picPrefab, picPos, Quaternion.identity, origPic); //var pacImage = pac.GetComponent<RawImage>().texture; //pacImage = camImage; foreach (var l in ch.pictures[round]) { var drawnLine = Instantiate(LinePrefab); //drawnLine.transform.parent = eCam.transform; var lineToDraw = drawnLine.GetComponent <LineRenderer>(); lineToDraw.positionCount = l.points.Length; lineToDraw.SetPositions(l.points); } //var tex = eCam.RTImage(); //var spr = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), new Vector2(0.5f, 0.5f)); //pac.GetComponent<Image>().sprite = spr; round++; // do something - ch.pictures[round] } else { break; } } }
void RpcUpdateStringChaindataOnClients(string text, int chainID) { rdm = FindObjectOfType <RoundDataManager>(); rdm.chains[chainID].guesses.Add(text.RemoveDiacritics()); }
// Use this for initialization void Start() { rdm = FindObjectOfType <RoundDataManager>(); //ThreadDisplay(); }