mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:07:38 +02:00
add cursor toggle, master volume
This commit is contained in:
26
Assets/Scripts/StudioDance/StudioDanceManager.cs
Normal file
26
Assets/Scripts/StudioDance/StudioDanceManager.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HeavenStudio;
|
||||
|
||||
namespace HeavenStudio.StudioDance
|
||||
{
|
||||
public class StudioDanceManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject windowBase;
|
||||
[SerializeField] private Transform windowHolder;
|
||||
[SerializeField] private GameObject content;
|
||||
|
||||
public void OpenDanceWindow()
|
||||
{
|
||||
var mobj = GameObject.Instantiate(windowBase, windowHolder);
|
||||
mobj.SetActive(true);
|
||||
content.SetActive(true);
|
||||
}
|
||||
|
||||
public void CloseDanceWindow()
|
||||
{
|
||||
content.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user