/// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. void Start() { settingsController = GameObject.Find("Puzzle Menu Controller").GetComponent <SettingsController>(); puzzleGameManager = GameObject.Find("Puzzle Game Controller").GetComponent <PuzzleGameManager>(); selectLevelScript = GameObject.Find("Puzzle Level Controller").GetComponent <SelectLevelScript>(); levelLocker = GameObject.Find("Puzzle Level Controller").GetComponent <LevelLocker>(); starsLocker = GameObject.Find("Puzzle Level Controller").GetComponent <StarsLocker>(); selectPuzzleMenuAnimator = selectPuzzleMenuPanel.GetComponent <Animator>(); selectPuzzleLevelAnimator = selectPuzzleLevelPanel.GetComponent <Animator>(); }
void Awake() { puzzleGameSaver = GameObject.Find("Puzzle Game Saver").GetComponent <PuzzleGameSaver>(); starsLocker = GetComponent <StarsLocker>(); DeactivatePadlocksAndStarHolders(); }