public ConfigurationMenu(string nameArg, Camera cameraArg, GameObject modelCubeArg) { _name = nameArg; _map = new MapMenu(new Vector3Int(40, 30, 4)); _modelCube = modelCubeArg; _obstructions = new Obstructions(); _cmdObstructionIsExists = new CommandObstructionIsExists(_obstructions); _cmdObstructionAdd = new CommandObstructionAdd(_obstructions); _cmdObstructionReplace = new CommandObstructionReplace(_obstructions); _cmdObstructionDelete = new CommandObstructionDelete(_obstructions); _mover = new Mover(_map.Size, _cmdObstructionIsExists, _cmdObstructionReplace); }
public ConfigurationMode1(string nameArg, Camera cameraArg, GameObject modelCubeArg) { _name = nameArg; _map = new MapGame(new Vector3Int(10, 20, 1)); _modelCube = modelCubeArg; _obstructions = new Obstructions(); _cmdObstructionIsExists = new CommandObstructionIsExists(_obstructions); _cmdObstructionAdd = new CommandObstructionAdd(_obstructions); _cmdObstructionReplace = new CommandObstructionReplace(_obstructions); _cmdObstructionDelete = new CommandObstructionDelete(_obstructions); _mover = new Mover(_map.Size, _cmdObstructionIsExists, _cmdObstructionReplace); _rotator = new Rotator(_mover, _map.Size); }