示例#1
0
    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()));
    }
示例#2
0
文件: B.cs 项目: 1090073061/mid-autm
 // 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;
         }
     }
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     print("new " + String.Join(",", Total.Bingo().Select(x => x.ToString()).ToArray()));
 }