Skip to content

Commit

Permalink
Debug do video player
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasVinicius314 committed Sep 15, 2022
1 parent 76f7564 commit 8187ca5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Scripts/PlayerScript.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Video;

#nullable enable

Expand Down Expand Up @@ -227,6 +228,10 @@ void Awake()
void OnGUI()
{
GUI.Label(new Rect(100, 16, 100, 20), $"Kill count: {killCount}");
GUI.Label(new Rect(200, 116, 100, 20), $"active: {Camera.main.gameObject.GetComponent<VideoPlayer>().isActiveAndEnabled}");
GUI.Label(new Rect(200, 216, 100, 20), $"paused: {Camera.main.gameObject.GetComponent<VideoPlayer>().isPaused}");
GUI.Label(new Rect(200, 316, 100, 20), $"playing: {Camera.main.gameObject.GetComponent<VideoPlayer>().isPlaying}");
GUI.Label(new Rect(200, 416, 100, 20), $"prepared: {Camera.main.gameObject.GetComponent<VideoPlayer>().isPrepared}");
}

void Start()
Expand Down

0 comments on commit 8187ca5

Please sign in to comment.