public void LoadCustomization()
    {
        PlayerDataCustomize loadedDataCustomize = SaveLoadCustomize.LoadPlayer();

        color_selected = loadedDataCustomize.selected_color;
        trail_selected = loadedDataCustomize.selected_trail;

        Player.GetComponent <Image>().color = Colors[color_selected].gameObject.GetComponent <Image>().color;
        Change_Trail(trail_selected);
    }
Esempio n. 2
0
    void Start()
    {
        PlayerDataCustomize loadedData = SaveLoadCustomize.LoadPlayer();

        Trail_Change(loadedData.trail_selection);
        Hat_Change(loadedData.hat_selection);
        Body_Change(loadedData.body_selection);
        Legs_Change(loadedData.legs_selection);
        Hands_Change(loadedData.hands_selection);
    }
    public void Load_Customization()
    {
        PlayerDataCustomize loadedDataCustomize = SaveLoadCustomize.LoadPlayer();

        color_selection = loadedDataCustomize.color_no;
        selected_color  = loadedDataCustomize.selected_color;
        trail_selection = loadedDataCustomize.trail_no;
        selected_trail  = loadedDataCustomize.selected_trail;

        Selected_Color.gameObject.GetComponent <Image>().color = Colors[color_selection].gameObject.GetComponent <Image>().color;
        Player_Idle.GetComponent <Image>().color = Colors[selected_color].gameObject.GetComponent <Image>().color;

        Selected_Trail.gameObject.GetComponent <Image>().sprite = TrailsImg[trail_selection];
        Change_Trail(selected_trail);
    }