public void Remove_first() { int num = Total.Bingo()[0]; button.GetComponentInChildren <Text>().text = num.ToString(); Total.Bingo().Remove(num); print("removed first " + String.Join(",", Total.Bingo().Select(x => x.ToString()).ToArray())); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { isPress = !isPress; } if (isPress) { signal = true; Total.Bingo(); num = Total.narray[0]; button.GetComponentInChildren <Text>().text = num.ToString();; } else { if (signal) { Total.narray.Remove(num); signal = false; } } }
// Use this for initialization void Start() { print("new " + String.Join(",", Total.Bingo().Select(x => x.ToString()).ToArray())); }