void Awake() { m_image = GetComponent <RawImage>(); m_originUVRect = m_image.uvRect; m_videoStreaming = GetComponent <VideoStreaming>(); ResetTouchPos(); m_dist = 0f; m_firstMove = true; }
public VideoController enableVideo() { droneConnection.addEventListener(VideoListener.videoListener()); droneConnection.sendCommand(VideoStreaming.enableVideoStreaming()); return(this); }
public VideoController disableVideo() { droneConnection.sendCommand(VideoStreaming.disableVideoStreaming()); return(this); }
public void playVideo() { videoStreaming = FindObjectOfType <VideoStreaming>(); videoStreaming.UpdateFrame(); debugText.text = "Playing Video"; }