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:
20
Assets/Scripts/LevelEditor/DialogHelpers/TabButton.cs
Normal file
20
Assets/Scripts/LevelEditor/DialogHelpers/TabButton.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using HeavenStudio.Editor.Track;
|
||||
|
||||
using TMPro;
|
||||
|
||||
namespace HeavenStudio.Editor
|
||||
{
|
||||
public class TabButton : MonoBehaviour
|
||||
{
|
||||
[SerializeField] GameObject Content;
|
||||
|
||||
public void OnClick()
|
||||
{
|
||||
var tabsManager = transform.parent.GetComponent<TabsManager>();
|
||||
tabsManager.SetActiveContent(Content);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user