using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIManager : MonoBehaviour
{
    public GameObject[] plane;
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    public void SwitchPanel(string name)
    {
        for (int i = 0; i < plane.Length; i++)
        {
            plane[i].SetActive(false);
            if (plane[i].name == name)
            {
                plane[i].SetActive(true);
            }
        }
    }
}