コード例 #1
0
    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);
        }
    }
コード例 #2
0
    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);
        }
    }
コード例 #3
0
 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);
     }
 }