Fancy Background Shader
This commit is contained in:
parent
d1945375c4
commit
4221f304f1
18 changed files with 698 additions and 398 deletions
15
Assets/Scripts/TabActivator.cs
Normal file
15
Assets/Scripts/TabActivator.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TabActivator : MonoBehaviour
|
||||
{
|
||||
public TabGroup TabGroup;
|
||||
public TabButton TabButton;
|
||||
|
||||
void Start()
|
||||
{
|
||||
TabGroup.OnTabChange += button => gameObject.SetActive(button == TabButton);
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue