using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UI; public class ModeController : MonoBehaviour { //public enum Mode { Player, Editor}; //public Mode mode = Mode.Player; public static ModeController instance; public GameObject Company; public GameObject Player; public GameObject Editor; public GameObject EditorTools; public GameObject LineX; public GameObject LineY; public GameObject Markers; public GameObject WallCursor; public GameObject DropdownLocations; public GameObject Building; public GameObject BuildingMode; public GameObject GroundSettings; public GameObject DateTime; Transform maps; public static bool editor = false; Button button; Dropdown.OptionData item; private void Awake() { instance = this; } // Start is called before the first frame update void Start() { button = gameObject.GetComponent