/// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 private void OnDestroy()
 {
     if (m_TextureReaderApi != null)
     {
         m_TextureReaderApi.Destroy();
         m_TextureReaderApi = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 private void OnDestroy()
 {
     if (_textureReaderApi != null)
     {
         _textureReaderApi.Destroy();
         _textureReaderApi = null;
     }
 }
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 public void Start()
 {
     if (m_TextureReaderApi == null)
     {
         m_TextureReaderApi = new TextureReaderApi();
         m_Command          = CommandType.Create;
         m_ImageBufferIndex = -1;
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 public void Start()
 {
     if (_textureReaderApi == null)
     {
         _textureReaderApi = new TextureReaderApi();
         _command          = CommandType.Create;
         _imageBufferIndex = -1;
     }
 }