public CardGridGenerator(CardCollectionSO cardCollection, GameDatasSO gameDatas) { this.cardCollection = cardCollection; cardCount = gameDatas.rows * gameDatas.columns; GenerateAvailableImageIndexes(); GenerateAvailablePositionIndexes(cardCount); }
private void GetGameDatasByDifficulty() { Difficulty difficulty = (Difficulty)PlayerPrefs.GetInt("Difficulty", (int)Difficulty.NORMAL); switch (difficulty) { case Difficulty.EASY: gameDatas = easyData; break; case Difficulty.NORMAL: gameDatas = normalData; break; case Difficulty.HARD: gameDatas = hardData; break; } }