mirror of
https://github.com/xiaopeng12138/MaiDXR.git
synced 2024-12-03 14:57:16 +01:00
24 lines
474 B
C#
24 lines
474 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TabManager : MonoBehaviour
|
|
{
|
|
public GameObject Tab1Object;
|
|
public GameObject Tab2Object;
|
|
void Start()
|
|
{
|
|
OnTab1Click();
|
|
}
|
|
public void OnTab1Click()
|
|
{
|
|
Tab1Object.SetActive(true);
|
|
Tab2Object.SetActive(false);
|
|
}
|
|
public void OnTab2Click()
|
|
{
|
|
Tab1Object.SetActive(false);
|
|
Tab2Object.SetActive(true);
|
|
}
|
|
}
|