Exemplo n.º 1
0
 private void AuthCallback1(ILoginResult result)
 {
     gameObject.SetActive(false);
     if (Application.loadedLevelName == "GameMap")
     {
         GameObject getDatafacebook = GameObject.FindGameObjectWithTag("facebookcontroll");
         getDatafacebook.GetComponent <GetDataFacebook>().GetAvatar();
         LayerFriendFacebook.SetActive(true);
         AzureUILeaderboard azure = FindObjectOfType <AzureUILeaderboard>();
         azure.QueryListLevel(gameObject.name);
         LayerSpinFacebook.SetActive(false);
     }
 }
Exemplo n.º 2
0
    void btnClick()
    {
        iTween.PunchScale(gameObject, new Vector3(0.2f, 0.2f), 0.3f);
        ControllerButtonMap controllerButtonMap = FindObjectOfType <ControllerButtonMap>();
        ReadDataMap         readData            = FindObjectOfType <ReadDataMap>();

        readData.ReadMission(gameObject.name);
        controllerButtonMap.btnChooseLevel();
        int level = int.Parse(gameObject.name.Substring(5));

        ObscuredPrefs.SetInt("level", level);
        if (!string.IsNullOrEmpty(GetDataFacebook.IDFacebook))
        {
            GetDataFacebook getdatafacebook = FindObjectOfType <GetDataFacebook>();
            getdatafacebook.ClearData();
            AzureUILeaderboard azure = FindObjectOfType <AzureUILeaderboard>();
            azure.QueryListLevel(gameObject.name);
        }

        // admodads.bannerView.Show();
    }