public void Update() { comboReady = false; foreach (KeyHistory keyHistory in keyCombos) { keyHistory.Update(); } if (comboDone) { KeyHistory keyHistory = keyCombos[keyHistoryCurrent]; if (keyHistory.IsActive()) { keyHistoryCurrent++; if (keyHistoryCurrent == keyCombos.Count) { keyHistoryCurrent = 0; comboReady = true; comboDone = false; } } } }
public KeyHistoryId AddKeyHistory(KeyHistory keyHistory) { int count = keyHistories.Count; keyHistories.Add(keyHistory); return(new KeyHistoryId(count)); }