示例#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 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);
    }
示例#3
0
    private string GenerateShirtArmInvertedKey(ShirtColorClass.ShirtColorEnum shirtColor, ShirtArm.ShirtArmType shirtArmType)
    {
        string key = shirtColor.ToString() + "ShirtArmInverted_" + shirtArmType;

        return(key);
    }