1
0
mirror of synced 2024-12-13 15:01:08 +01:00
WACVR/Assets/Script/Essential/TabManager.cs

24 lines
487 B
C#
Raw Normal View History

2022-10-03 02:04:54 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TabManager : MonoBehaviour
{
public GameObject Tab1Object;
public GameObject Tab2Object;
void Start()
{
OnFirstTabClick();
}
public void OnFirstTabClick()
{
Tab1Object.SetActive(true);
Tab2Object.SetActive(false);
}
public void OnSecondTabClick()
{
Tab1Object.SetActive(false);
Tab2Object.SetActive(true);
}
}