mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 02:45:39 +03:00
44 lines
716 B
C#
44 lines
716 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BtnLampMigScript : MonoBehaviour
|
|
{
|
|
public GameObject[] lamp;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
lamp[0].SetActive(true);
|
|
lamp[1].SetActive(false);
|
|
|
|
}
|
|
|
|
public void OnDown()
|
|
{
|
|
|
|
}
|
|
public void OnUp()
|
|
{
|
|
|
|
if (lamp[1].activeSelf == true)
|
|
{
|
|
lamp[1].SetActive(false);
|
|
}
|
|
else
|
|
{
|
|
lamp[1].SetActive(true);
|
|
}
|
|
|
|
}
|
|
public void OnClick()
|
|
{
|
|
|
|
}
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|