This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AW_2025/Assets/Scripts/SJM/Button_OnOff.cs
2025-02-24 15:18:12 +09:00

28 lines
554 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Button_OnOff : MonoBehaviour
{
public GameObject button_Normal;
public GameObject button_Abnormal;
void Start()
{
button_Abnormal.SetActive(false);
button_Normal.SetActive(false);
}
public void Normal()
{
button_Normal.SetActive(true);
button_Abnormal.SetActive(false);
}
public void Abnormal()
{
button_Normal.SetActive(false);
button_Abnormal.SetActive(true);
}
}