Newer
Older
using System.Collections.Generic;
using UnityEngine;
public class ValidateAccessToBuilding : MonoBehaviour
{
[SerializeField]
private List<GameObject> arrows = new List<GameObject>();
// Start is called before the first frame update
void Start()
{
foreach (GameObject a in arrows)
{
a.SetActive(false);
}
}
Sylvain Buche
committed
public void OnClick()
{
foreach(GameObject a in arrows)
{
a.SetActive(true);
}
}
}