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; } } } }
public KeyHistoryId AddKeyHistory(KeyHistory keyHistory) { int count = keyHistories.Count; keyHistories.Add(keyHistory); return(new KeyHistoryId(count)); }