Exemple #1
0
    private string GeneratePantsKey(int pantsColor)
    {
        string pantsColorName = _dropdown.options[pantsColor].text;
        float  pantsType      = _pantsSlider.value;

        _pantsColor = (PantsColorClass.PantsColorEnum)pantsColor;

        string key = pantsColorName + "Pants_" + pantsType;

        return(key);
    }
Exemple #2
0
    private string GeneratePantsLegKey(PantsColorClass.PantsColorEnum pantsColor)
    {
        int pantsTypeCount = System.Enum.GetNames(typeof(PantsLeg.PantsLegType)).Length;

        int random = Random.Range(0, pantsTypeCount);

        _pantsLegType = (PantsLeg.PantsLegType)random;

        string randomKey = pantsColor.ToString() + "PantsLeg_" + _pantsLegType;

        return(randomKey);
    }
Exemple #3
0
    private string GeneratePantsKey()
    {
        int ColorEnumLength = System.Enum.GetNames(typeof(PantsColorClass.PantsColorEnum)).Length;

        int random = Random.Range(0, ColorEnumLength);

        _pantsColor = (PantsColorClass.PantsColorEnum)random;

        var    pantsType = Random.Range(1, _pantsTypeCount + 1);
        string randomKey = _pantsColor.ToString() + "Pants_" + pantsType;

        return(randomKey);
    }