Exemplo n.º 1
0
    // Use this for initialization
    public override void Start()
    {
        player = PlayerProfileStore
                 .GetInstance()
                 .LoadProfile();

        base.Start();
    }
Exemplo n.º 2
0
    public static PlayerProfileStore GetInstance()
    {
        if (_instance == null)
        {
            _instance = new PlayerProfileStore();
        }

        return(_instance);
    }
Exemplo n.º 3
0
    void Start()
    {
        DontDestroyOnLoad(gameObject);

        if (!isLocalPlayer)
        {
            return;
        }

        profileStore = new PlayerProfileStore();

        CmdSetProfile(profileStore.LoadProfile());
    }