// Use this for initialization
    public override void Start()
    {
        player = PlayerProfileStore
                 .GetInstance()
                 .LoadProfile();

        base.Start();
    }
Example #2
0
    public static PlayerProfileStore GetInstance()
    {
        if (_instance == null)
        {
            _instance = new PlayerProfileStore();
        }

        return(_instance);
    }
Example #3
0
    void Start()
    {
        DontDestroyOnLoad(gameObject);

        if (!isLocalPlayer)
        {
            return;
        }

        profileStore = new PlayerProfileStore();

        CmdSetProfile(profileStore.LoadProfile());
    }