mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 09:47:38 +02:00
add cursor toggle, master volume
This commit is contained in:
29
Assets/GUIWindows/Scripts/GUIBorderParent.cs
Normal file
29
Assets/GUIWindows/Scripts/GUIBorderParent.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains a reference to all GUIWindowHandle objects below this Transform for ease of referencing
|
||||
/// </summary>
|
||||
public class GUIBorderParent : MonoBehaviour
|
||||
{
|
||||
private GUIWindowHandle[] handles;
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
handles = GetComponentsInChildren<GUIWindowHandle>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toggle interactivity of handles
|
||||
/// </summary>
|
||||
/// <param name="input">is interactive</param>
|
||||
public void SetIsLocked(bool input)
|
||||
{
|
||||
for (int i = 0; i < handles.Length; i++)
|
||||
{
|
||||
handles[i].SetIsLocked(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user