26 lines
499 B
C#
26 lines
499 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AmmeterSon : MonoBehaviour
|
|
{
|
|
public string name;
|
|
[SerializeField] AmmeterSon ammeterSon;
|
|
bool Run = false;
|
|
private void Start()
|
|
{
|
|
Run = true;
|
|
}
|
|
private void OnMouseDown()
|
|
{
|
|
if (Run)
|
|
{
|
|
gameObject.SetActive(false);
|
|
if (ammeterSon != null)
|
|
{
|
|
ammeterSon.enabled = true;
|
|
}
|
|
}
|
|
}
|
|
}
|