Skip to content
Snippets Groups Projects
ValidateAccessToBuilding.cs 509 B
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);
        }
    }

    public void OnClick()
    {
        foreach(GameObject a in arrows)
        {
            a.SetActive(true);
        }
    }
}