protected virtual void Awake() { // Make sure we have the components we need if (gameLoader == null) { gameLoader = FindObjectOfType <GameLoader>(); } if (gameSaver == null) { gameSaver = FindObjectOfType <GameSaver>(); } if (slotManager == null) { slotManager = FindObjectOfType <SaveSlotManager>(); } if (saveManager == null) { saveManager = FindObjectOfType <SaveManager>(); } canvasGroup = GetComponent <CanvasGroup>(); }