public bool VerificaAutoShift(KeyShift key) { if (!shift.ContainsKey(key)) { shift.Add(key, false); return(false); } else { return(shift[key]); } }
private void OnRequestChangeShiftKey(IGameEvent obj) { StandardSendGameEvent ssge = (StandardSendGameEvent)obj; try { string key = (string)ssge.MyObject[0]; MyKeys.MudaAutoShift(key, true); } catch { Debug.Log("O tratamento de erro levou para keyShift"); KeyShift keyS = (KeyShift)ssge.MyObject[0]; MyKeys.MudaShift(keyS, true); } }
public void MudaShift(KeyShift key, bool val = false) { MudaDic(shift, key, val); }