From 8187ca53ce35783d80243cda1243612f951adc25 Mon Sep 17 00:00:00 2001 From: Lucas Coelho <58010418+LucasVinicius314@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:55:57 -0300 Subject: [PATCH] Debug do video player --- Assets/Scripts/PlayerScript.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/Scripts/PlayerScript.cs b/Assets/Scripts/PlayerScript.cs index 82b26f5..554b29a 100644 --- a/Assets/Scripts/PlayerScript.cs +++ b/Assets/Scripts/PlayerScript.cs @@ -1,5 +1,6 @@ using UnityEngine; using UnityEngine.InputSystem; +using UnityEngine.Video; #nullable enable @@ -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().isActiveAndEnabled}"); + GUI.Label(new Rect(200, 216, 100, 20), $"paused: {Camera.main.gameObject.GetComponent().isPaused}"); + GUI.Label(new Rect(200, 316, 100, 20), $"playing: {Camera.main.gameObject.GetComponent().isPlaying}"); + GUI.Label(new Rect(200, 416, 100, 20), $"prepared: {Camera.main.gameObject.GetComponent().isPrepared}"); } void Start()