-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPanelController.cs
73 lines (66 loc) · 1.72 KB
/
PanelController.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System;
using UdonSharp;
using UnityEngine;
using VRC.SDK3.Components;
using VRC.SDKBase;
using VRC.Udon;
namespace UdonVR.Takato.VideoPlayer
{
/// <summary>
///
/// </summary>
public class PanelController : UdonSharpBehaviour
{
public PanelUI[] panels;
public void AutoResyncToggle(bool value)
{
foreach (PanelUI Panel in panels)
{
Panel.AutoResyncToggle(value);
}
}
public void AutoResyncRateInput(int value)
{
foreach (PanelUI Panel in panels)
{
Panel.AutoResyncRateInput(value);
}
}
public void SetOwnerText(string displayName)
{
foreach (PanelUI Panel in panels)
{
Panel.SetOwnerText(displayName);
}
}
public void SetVideoTimeBarMaxValue(float value)
{
foreach (PanelUI Panel in panels)
{
Panel.SetVideoTimeBarMaxValue(value);
}
}
public void SetVideoTimeBarValue(int value)
{
foreach (PanelUI Panel in panels)
{
Panel.SetVideoTimeBarValue(value);
}
}
public void VideoTimeBarInteractable(bool value)
{
foreach (PanelUI Panel in panels)
{
Panel.VideoTimeBarInteractable(value);
}
}
public void SetResyncText(string value)
{
foreach (PanelUI Panel in panels)
{
Panel.SetResyncText(value);
}
}
}
}