Ejemplo n.º 1
0
    void Start()
    {
        if (PlayerPrefs.HasKey("FriendScene"))
        {
            this.sceneStatus = PlayerPrefs.GetString("FriendScene");
        }
        else
        {
            PlayerPrefs.SetString("FriendScene", "Friend");
            PlayerPrefs.Save();
            this.sceneStatus = "Friend";
        }

        this.frScript = GameObject.Find("SceneManager").GetComponent <CreateUserFB>() as CreateUserFB;
        this.friends  = new List <Friends>();

        this.friends = frScript.GetFriendsList();

        StartCoroutine(Test());

        /*this.friends.Add(new Friends("friend1","Friend"));
         * this.friends.Add(new Friends("friend2", "Friend"));
         * this.friends.Add(new Friends("friend3", "Friend"));
         * this.friends.Add(new Friends("friend4", "Requesting"));
         * this.friends.Add(new Friends("friend5", "Requesting"));
         * this.friends.Add(new Friends("friend6", "Requesting"));
         * this.friends.Add(new Friends("friend7", "Pending"));
         * this.friends.Add(new Friends("friend8", "Pending"));
         * this.friends.Add(new Friends("friend9", "Pending"));*/

        //Set_Category(this.sceneStatus);
    }
Ejemplo n.º 2
0
 public void testUpdate()
 {
     Destroy_Entries();
     this.friends = frScript.GetFriendsList();
 }