Skip to content

Umm this doesn't make a lick of sense.... #2

@ZeredaGamesNEW

Description

@ZeredaGamesNEW

Not sure if i'm missing something here but doesn't this just keep overwriting itself here?

    public static void Init()
    {
        if (HasKey(RAND_KEY))
        {
            privateKey = PRIVATE_KEY_PREFIX + PRIVATE_KEY_RAND + PRIVATE_KEY_SUFFIX;
            privateKey = GetString(RAND_KEY);
            privateKey = PRIVATE_KEY_PREFIX + privateKey + PRIVATE_KEY_SUFFIX;
        }
        else
        {
            int rand = UnityEngine.Random.Range(100, 1000);
            privateKey = PRIVATE_KEY_PREFIX + PRIVATE_KEY_RAND + PRIVATE_KEY_SUFFIX;
            SetInt(RAND_KEY, rand);
            privateKey = PRIVATE_KEY_PREFIX + rand + PRIVATE_KEY_SUFFIX;
        }
        isInit = true;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions