private void OnUnequipEmblem(IGameEvent obj) { StandardSendGameEvent ssge = (StandardSendGameEvent)obj; NomesEmblemas nomeID = (NomesEmblemas)ssge.MyObject[0]; switch (nomeID) { default: MyKeys.MudaAutoShift("equiped_" + nomeID.ToString(), false); break; } }
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); } }
private void OnEquipEmblem(IGameEvent obj) { StandardSendGameEvent ssge = (StandardSendGameEvent)obj; NomesEmblemas nomeID = (NomesEmblemas)ssge.MyObject[0]; switch (nomeID) { default: MyKeys.MudaAutoShift("equiped_" + nomeID.ToString(), true); break; } TrophiesManager.VerifyTrophy(TrophyId.coloqueEmblemaNaEspada); }