예제 #1
0
    private string GenerateShirtArmKey(ShirtColorClass.ShirtColorEnum shirtColor)
    {
        int armTypeCount = System.Enum.GetNames(typeof(ShirtArm.ShirtArmType)).Length;

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

        _shirtArmType = (ShirtArm.ShirtArmType)random;

        string key = shirtColor.ToString() + "ShirtArm_" + _shirtArmType;

        return(key);
    }
예제 #2
0
    private string GenerateShirtKey(bool isMale, int shirtColor)
    {
        string shirtColorName = _dropdown.options[shirtColor].text;
        int    shirtType      = System.Convert.ToInt32(_shirtSlider.value);

        _shirtColor = (ShirtColorClass.ShirtColorEnum)shirtColor;

        shirtType = isMale ? FilterShirtType(shirtType) : shirtType;

        string key = shirtColorName + "Shirt_" + shirtType;

        return(key);
    }
예제 #3
0
    private string GenerateShirtKey(bool isMale)
    {
        int ColorEnumLength = System.Enum.GetNames(typeof(ShirtColorClass.ShirtColorEnum)).Length;

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

        _shirtColor = (ShirtColorClass.ShirtColorEnum)random;

        // Generate a random filtered shirtType
        int shirtType = Random.Range(1, _shirtTypeCount + 1);

        shirtType = isMale ? FilterShirtType(shirtType) : shirtType;

        string key = _shirtColor.ToString() + "Shirt_" + shirtType;

        return(key);
    }
예제 #4
0
    private string GenerateShirtArmInvertedKey(ShirtColorClass.ShirtColorEnum shirtColor, ShirtArm.ShirtArmType shirtArmType)
    {
        string key = shirtColor.ToString() + "ShirtArmInverted_" + shirtArmType;

        return(key);
    }