using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /*************This class should be on a Button that hides any grids and any functionality until the Button is pressed**************/ public class BuildMode : MonoBehaviour { //Private variables Button btn; RemoveMode removeMode; GridSelector gridSelector; ObjectSelector objectSelector; GameObject[] gridsCellContainers; GameObject[] gridsObjectContainers; bool buildMode = false; //Serialized variables [Tooltip("You would place a menu GameObject here that holds all of your buildable objects(SelectObject.cs)")] [SerializeField] GameObject buildMenu; [SerializeField] bool hideGridObjectsWithCells; [Tooltip("If the Grid Selector has place tiles with building enabled, this will also hide them as well")] [SerializeField] bool hideTilesWithCells; private void Awake() { //Gets all the relevent components btn = GetComponent