Esempio n. 1
0
        /// <summary>
        /// This function will only update the local player, not all players. It sets the function to be called after an image as been downloaded from the server
        /// </summary>
        /// <param name="_postDownloadFunction">The function to execute after the passed in Texture2D is downloaded from the server</param>
        /// /// <param name="_myTexture2D">The Texture2D that was downloaded from the server</param>
        /// /// <param name="_uploadId">The upload ID of the Texture2D that was downloaded from the server, used to find the same texture later</param>
        public void _LocallySetPostDownloadFunction(PostDownloadFunction _postDownloadFunction, Texture2D _myTexture2D, string _uploadId)
        {
            m_PostDownloadFunction = _postDownloadFunction;
            PostDownloadInfo myPostDownloadInfo = new PostDownloadInfo(_postDownloadFunction, _myTexture2D, _uploadId);

            m_PostDownloadInfoList.Add(myPostDownloadInfo);
        }
 /// <summary>
 /// This function will only update the local player, not all players. It sets the function to be called after an image as been downloaded from the server
 /// </summary>
 /// <param name="_postDownloadFunction">The function to execute after the passed in Texture2D is downloaded from the server</param>
 public void _LocallySetPostDownloadFunction(PostDownloadFunction _postDownloadFunction)
 {
     m_PostDownloadFunction = _postDownloadFunction;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor for our PostDownloadInfo struct
 /// </summary>
 /// <param name="_postDownloadFunction">The post download function to be executed</param>
 /// <param name="_myTexture2D">The Texture2D that was uploaded/downloaded and associated with the passed in post download function</param>
 /// <param name="_uploadId">The upload/download id of the Texture2D. It is used to determine which texture we are working with when a message comes in
 /// informing the user that they can execute a post download function now.</param>
 public PostDownloadInfo(PostDownloadFunction _postDownloadFunction, Texture2D _myTexture2D, string _uploadId)
 {
     s_postDownloadFunction = _postDownloadFunction;
     s_myTexture2D          = _myTexture2D;
     s_uploadId             = _uploadId;
 }