using System.Collections.Generic; using UnityEngine; public class ValidateAccessToBuilding : MonoBehaviour { [SerializeField] private List arrows = new List(); // 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); } } }