예제 #1
0
    private void SetGGMLevelData()
    {
        // TODO: Make sure none of them are null, and what to do if the List.count is 0
        // TODO: Set the Active Staff from ClientData
        // TODO: Animation for loading screen
        List <GameObject> tempList;
        int index;

        tempList = owsc.GetAvailableBodySkins();
        index    = PlayerPrefs.GetInt("SkinBody");
        ggm.SetPlayerBodySkin(tempList[index]);
        tempList = owsc.GetAvailableFeetSkins();
        index    = PlayerPrefs.GetInt("SkinFeet");
        ggm.SetPlayerFeetSkin(tempList[index]);
        tempList = owsc.GetAvailableHandSkins();
        index    = PlayerPrefs.GetInt("SkinHands");
        ggm.SetPlayerHandsSkin(tempList[index]);
        tempList = owsc.GetAvailableHeadSkins();
        index    = PlayerPrefs.GetInt("SkinHead");
        ggm.SetPlayerHeadSkin(tempList[index]);
        ggm.SetLevelData(levelData);
        ggm.SetCompletionRewards(completion.size, completion.color, completion.quantity);
        ggm.SetFirstTimeRewards(firstTime.size, firstTime.color, firstTime.quantity);
        ggm.SetMasteryRewards(mastery.size, mastery.color, mastery.quantity);
        // TODO: Wait for Playfab to return true from Populate level Data, then load level.
    }