示例#1
0
    public static GameRoleDB RandomBattlerOrCrewDB()
    {
        GameRoleDB data = new GameRoleDB();

        data.eyeball        = CCRandom.Range(0, 12);
        data.skincolor      = CCRandom.Range(0, 8);
        data.hairColorIndex = CCRandom.Range(1, 22);
        return(data);
    }
示例#2
0
    public static GameRoleDB RandomRoleDB()
    {
        GameRoleDB data = new GameRoleDB();

        data.eyeball        = CCRandom.Range(0, 12);
        data.eyebrow        = CCRandom.Range(0, 12);
        data.skincolor      = CCRandom.Range(0, 8);
        data.facesize       = CCRandom.Range(0, 6);
        data.eyesize        = CCRandom.Range(0, 6);
        data.nosesie        = CCRandom.Range(0, 6);
        data.mouthsize      = CCRandom.Range(0, 6);
        data.hairColorIndex = CCRandom.Range(1, 22);
        return(data);
    }