Newer
Older
Plot_On_Reality / Assets / Originals / Scripts / Cross / ListChanger.cs
t-nagao on 1 Feb 2023 650 bytes first
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class ListChanger : BackButton
{
    [SerializeField] GameObject graphList;
    [SerializeField] GameObject crossList;
    [SerializeField] TextMeshPro listName;

    public void pressedChangeListButton()
    {
        if (graphList.activeSelf)
        {
            graphList.SetActive(false);
            crossList.SetActive(true);
            listName.text = "交点リスト";
        }
        else
        {
            graphList.SetActive(true);
            crossList.SetActive(false);
            listName.text = "グラフリスト";
        }
    }
}