public Level(LevelType type) { if (type.Equals(LevelType.Hub)) { Initialize(type, false, false, 0, 1); } else if (type.Equals(LevelType.Corrida)) { Initialize(type, true, false, 1, 4); } else if (type.Equals(LevelType.Corrida)) { Initialize(type, true, false, 7, 4); } else if (type.Equals(LevelType.Podium)) { Initialize(type, false, true, 0, 4); } }
private List <Vector3> gridPositions = new List <Vector3> (); //A list of possible locations to place tiles. private GameObject getExit() { if (currentLevelType.Equals(LevelType.Woods)) { return(exitWoods); } else if (currentLevelType.Equals(LevelType.Ruins)) { return(exitRuins); } else { return(exitWoods); } }
public void initializeCards(LevelType type) { totalCardCount = instance.cards.Count; initializeOrderArray(orders, totalCardCount); shuffleArr(orders); initializeCardValues(); if (type.Equals(LevelType.MatchSame)) { cardFaces = animalsWithNames; setupGraphics(cards); } else if (type.Equals(LevelType.MatchImageWithWord)) { cardFaces = animals; cardFacesPairs = animalsWithNames; setupGraphicsUsingDifferentPairs(cards); } else if (type.Equals(LevelType.MatchImageWithLetter)) { cardFaces = animalsWithNames; cardFacesPairs = letters; setupGraphicsUsingDifferentPairs(cards); } }