private void Awake() { _buildingController = GetComponent <BuildingController>(); _structure = GetComponent <EditableStructure>(); _blockSelection.AddOptions(((BlockType[])Enum.GetValues(typeof(BlockType))) .Where(type => type != BlockType.Mainframe) .Select(type => type.ToString()) .ToList()); SelectBlock(); ResetStructure(); }
private void Awake() { _camera = Camera.main; _structure = GetComponent <EditableStructure>(); Assert.IsTrue(_structure.Deserialize(ExampleStructure), "Failed to load the example structure."); }
private void Awake() { _camera = Camera.main; _structure = GetComponent <EditableStructure>(); Cursor.lockState = CursorLockMode.Locked; }