Пример #1
0
        public void Update()
        {
            comboReady = false;

            foreach (KeyHistory keyHistory in keyHistories)
            {
                keyHistory.Update();
            }

            if (comboDone)
            {
                KeyHistory keyHistory = keyHistories[keyHistoryCurrent];

                if (keyHistory.IsActive())
                {
                    keyHistoryCurrent++;
                    if (keyHistoryCurrent == keyHistories.Count)
                    {
                        keyHistoryCurrent = 0;
                        comboReady        = true;
                        comboDone         = false;
                    }
                }
            }
        }
Пример #2
0
        public KeyHistoryId AddKeyHistory(KeyHistory keyHistory)
        {
            int count = keyHistories.Count;

            keyHistories.Add(keyHistory);
            return(new KeyHistoryId(count));
        }