// Use this for initialization public override void Start() { player = PlayerProfileStore .GetInstance() .LoadProfile(); base.Start(); }
public static PlayerProfileStore GetInstance() { if (_instance == null) { _instance = new PlayerProfileStore(); } return(_instance); }
void Start() { DontDestroyOnLoad(gameObject); if (!isLocalPlayer) { return; } profileStore = new PlayerProfileStore(); CmdSetProfile(profileStore.LoadProfile()); }