} //end OnViewFrendsButtonclicked public void ViewMyFriends(ISFSObject objIn) { //this function will get notifications from server and display it to the member Friends = objIn.GetSFSArray("Friends"); Transverser.Friends = null; Transverser.Friends = Friends; //to store friends Transverser.RoomID = Room_ID; //to store user roomID Debug.Log("Display friends"); //display form that will show the Friend friendsForm.gameObject.SetActive(true); //class that will allow user to manage his/her Frinds ScrollableFriendsPanel m = new ScrollableFriendsPanel(); if (display > 0) //to allow request Friends list from server each time { m.Start(); } display++; } //end ViewMyFriends
void Awake() { instance = this; }