void Start() { isJustCompleted = GameManager.Instance.GetCompletedLevel() == id; isCompletedThisRun = IsMemoryLevelCompletedThisRun(); isPreviouslyCompleted = IsCompletedInPreviousRun(); levelSelector = FindLevelSelector(); DetermineStartState(); }
private LevelSelectBehaviour FindLevelSelector() { LevelSelectBehaviour levelSelector = GetComponentInChildren <LevelSelectBehaviour>(); return(levelSelector); }