Exemplo n.º 1
0
        private void Awake()
        {
            CList = new DataStructure.CircularList <string>();
            CList.Enqueue("2/4");
            CList.Enqueue("3/4");
            CList.Enqueue("4/4");
            CList.Enqueue("6/8");
            CList.Enqueue("12/8");

            text = this.GetComponentInChildren <TMPro.TextMeshProUGUI>();
        }
Exemplo n.º 2
0
    private void Awake()
    {
        CList = new DataStructure.CircularList <string>();
        CList.Enqueue("76");
        CList.Enqueue("80");
        CList.Enqueue("108");
        CList.Enqueue("112");
        CList.Enqueue("120");

        text = this.GetComponentInChildren <TMPro.TextMeshProUGUI>();
        CopyString();
    }
Exemplo n.º 3
0
        public void SetNotes(int NoteCount)
        {
            //int noteCnt = 0;

            ActiveNotes.Clear();
            for (int i = 0; i < Notes.Length; i++)
            {
                if (i < Notes.Length - NoteCount)
                {
                    Notes[i].gameObject.SetActive(false);
                }
                else
                {
                    Notes[i].gameObject.SetActive(true);
                    ActiveNotes.Enqueue(Notes[i]);
                }
            }
        }