Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Serializable]
- public class PlayerData
- {
- public int SlotNumber;
- public bool SetupComplete;
- public string Username;
- public int ChildNumber;
- public int[] ChildrenPoints;
- public string[] ChildNames;
- public int[] ChildID;
- public PlayerData(UI_Holder player)
- {
- //Here you add the vars to save
- SetupComplete = player.isSetupComplete;
- SlotNumber = player.SlotNumber;
- Username = player.Username;
- ChildNumber = player.Children.Count;
- /*for( int i=0; i < ChildNumber; i++)
- {
- ChildrenPoints[i] = player.Children[i].GetComponent<ChildScrollContainer>().ChildPoints;
- ChildNames[i] = player.Children[i].GetComponent<ChildScrollContainer>().ChildName;
- break;
- }*/
- //Children = player.Children;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement