Пример #1
0
    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);
    }
Пример #2
0
    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;
        }
    }
Пример #3
0
    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);
    }
Пример #4
0
 public Emblema(NomesEmblemas nome, int espacos)
 {
     NomeId             = nome;
     EspacosNecessarios = espacos;
 }