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/Device_Status.cs
2025-02-24 15:18:12 +09:00

44 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Device_Status : MonoBehaviour
{
public GameObject greenButton_1;
public GameObject greenButton_2;
public GameObject grayButton_1;
public GameObject grayButton_2;
void Start()
{
greenButton_1.SetActive(false);
greenButton_2.SetActive(false);
grayButton_1.SetActive(true);
grayButton_2.SetActive(true);
}
public void Value_0()
{
greenButton_1.SetActive(false);
greenButton_2.SetActive(false);
grayButton_1.SetActive(true);
grayButton_2.SetActive(true);
}
public void Value_1()
{
greenButton_1.SetActive(true);
greenButton_1.SetActive(false);
grayButton_1.SetActive(false);
grayButton_2.SetActive(true);
}
public void Value_2()
{
greenButton_1.SetActive(true);
greenButton_1.SetActive(true);
grayButton_1.SetActive(false);
grayButton_2.SetActive(false);
}
}