--[[
	Initialises the controller, getting the client platform, and then requiring the correct set of view scripts
]]

function UIController.init()
	local platform = getClientPlatform()
	local platformViews = ReplicatedStorage.Source.UIViews[platform]

	-- Initialise these here, as we need to get the platform of the user.
	views = {
		mainMenu = require(platformViews.MainMenu),
		warmup = require(platformViews.Warmup),
		game = require(platformViews.Game),
		dead = require(platformViews.Dead),
		spectating = require(platformViews.Spectating),
		finished = require(platformViews.Finished),
		postGame = require(platformViews.PostGame)
	}

	UIController.extractStarterGui()

	Logger.debug("UIController loaded")
end
