mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 00:27:40 +02:00
prepare work for remix properties UI
This commit is contained in:
24
Assets/Scripts/LevelEditor/DialogHelpers/TabsManager.cs
Normal file
24
Assets/Scripts/LevelEditor/DialogHelpers/TabsManager.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HeavenStudio.Editor.Track;
|
||||
|
||||
using TMPro;
|
||||
|
||||
namespace HeavenStudio.Editor
|
||||
{
|
||||
public class TabsManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField] GameObject activeContent;
|
||||
|
||||
public void SetActiveContent(GameObject content)
|
||||
{
|
||||
if (activeContent != null)
|
||||
{
|
||||
activeContent.SetActive(false);
|
||||
}
|
||||
activeContent = content;
|
||||
activeContent.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user