Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1.    [Serializable]
  2.     public class PlayerData
  3.     {
  4.         public int SlotNumber;
  5.         public bool SetupComplete;
  6.         public string Username;
  7.         public int ChildNumber;
  8.         public int[] ChildrenPoints;
  9.         public string[] ChildNames;
  10.         public int[] ChildID;
  11.    
  12.      
  13.    
  14.    
  15.         public PlayerData(UI_Holder player)
  16.         {
  17.             //Here you add the vars to save
  18.            
  19.             SetupComplete = player.isSetupComplete;
  20.             SlotNumber = player.SlotNumber;
  21.             Username = player.Username;
  22.             ChildNumber = player.Children.Count;
  23.             /*for( int i=0; i < ChildNumber; i++)
  24.             {
  25.                 ChildrenPoints[i] = player.Children[i].GetComponent<ChildScrollContainer>().ChildPoints;
  26.                 ChildNames[i] = player.Children[i].GetComponent<ChildScrollContainer>().ChildName;
  27.                 break;
  28.             }*/
  29.             //Children = player.Children;
  30.         }
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement