public static Emblema GetEmblem(NomesEmblemas nome) { Emblema retorno = null; switch (nome) { case NomesEmblemas.nulo: Debug.LogError("o valor de emblema era nulo"); break; case NomesEmblemas.dinheiroMagnetico: retorno = new Emblema(nome, 1); break; case NomesEmblemas.ataqueAprimorado: retorno = new Emblema(nome, 2); break; case NomesEmblemas.suspiroLongo: retorno = new Emblema(nome, 1); break; default: Debug.LogError("o valor de emblema não está no switch case"); break; } return(retorno); }
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 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); }
public Emblema(NomesEmblemas nome, int espacos) { NomeId = nome; EspacosNecessarios = espacos; }