Esempio n. 1
0
    }                                                     //end OnViewNotificationsButtonclicked

    public void ViewMyNotifications(ISFSObject objIn)
    {       //this function will get notifications from server and display it to the member
        useraccountinfo      = objIn.GetSFSArray("Notifications");
        Transverser.userinfo = null;
        Transverser.userinfo = useraccountinfo; //to store notifications
        Transverser.RoomID   = Room_ID;         //to store room ID
        Debug.Log("Display Notifications");
        //display form that will show the notifications
        NotificationForm.gameObject.SetActive(true);
        //class that will deal with notification form contents
        ScrollableNotificationsPanel m = new ScrollableNotificationsPanel();

        if (display > 0)//to allaw request notification from server each time
        {
            m.Start();
        }
        display++;
    }    //end viewMyNotifications
 void Awake()
 {
     instance = this;
 }