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); } } public void OnClick() { foreach(GameObject a in arrows) { a.SetActive(true); } } }