Exemplo n.º 1
0
    void Start()
    {
        progressBar.value = progress;

        labLoading.text = "... Logging in ...";
        FMPlayfabLogin.LoginCustomID("64646464", OnLoginSuccess);
    }
Exemplo n.º 2
0
 void Start()
 {
     //var request = new LoginWithCustomIDRequest { CustomId = "64646464", CreateAccount = false };
     //PlayFabClientAPI.LoginWithCustomID(request, OnLoginSuccess, OnLoginFailure);
     FMPlayfabLoginBonus.Instance.OnResult = DisplayLoginBuses;
     if (!FMPlayfabLogin.IsClientLoggedIn())
     {
         FMPlayfabLogin.LoginCustomID("64646464", OnLoginSuccess);
         return;
     }
     DisplayInfo();
 }
Exemplo n.º 3
0
    void Start()
    {
        spawners.Add(particleSpawner.GetComponentsInChildren <FMParticleSpawner>()[0]); //check
        spawners.Add(particleSpawner.GetComponentsInChildren <FMParticleSpawner>()[1]); //coin CO
        spawners.Add(particleSpawner.GetComponentsInChildren <FMParticleSpawner>()[2]); //coin PC

        if (!FMPlayfabLogin.IsClientLoggedIn())
        {
            Debug.Log("client was not logged");
            FMPlayfabLogin.LoginCustomID("64646464", LoadPlayfabData);
        }
        LoadPlayfabData(null);
    }