Ejemplo n.º 1
0
 void OnCustomize(CharacterCustomizer.Types t, int id)
 {
     Invoke("Delayed", 0.1f);
 }
Ejemplo n.º 2
0
    public bool IsCostumizationLocked(CharacterCustomizer.Types type, int id)
    {
        bool locked = true;

        switch (type)
        {
        case CharacterCustomizer.Types.HATS:
            if (level >= 0 && id == 0)
            {
                locked = false;
            }
            if (level >= 3 && id == 1)
            {
                locked = false;
            }
            if (level >= 4 && id == 2)
            {
                locked = false;
            }
            break;

        case CharacterCustomizer.Types.GLASSES:
            if (level >= 0 && id == 0)
            {
                locked = false;
            }
            if (level >= 2 && id == 1)
            {
                locked = false;
            }
            if (level >= 4 && id == 2)
            {
                locked = false;
            }
            break;

        case CharacterCustomizer.Types.COLLARS:
            if (level >= 0 && id == 0)
            {
                locked = false;
            }
            if (level >= 1 && id == 1)
            {
                locked = false;
            }
            if (level >= 3 && id == 2)
            {
                locked = false;
            }
            break;

        case CharacterCustomizer.Types.MOUSTACHES:
            if (level >= 1 && id == 0)
            {
                locked = false;
            }
            if (level >= 2 && id == 1)
            {
                locked = false;
            }
            if (level >= 3 && id == 2)
            {
                locked = false;
            }
            break;

        case CharacterCustomizer.Types.EARINGS:
            if (level >= 1 && id == 1)
            {
                locked = false;
            }
            if (level >= 2 && id == 0)
            {
                locked = false;
            }
            if (level >= 4 && id == 2)
            {
                locked = false;
            }
            break;
        }
        return(locked);
    }