Ejemplo n.º 1
0
    public LevelStats GetStats(LevelToUnlock GetLevel)
    {
        switch (GetLevel)
        {
        case LevelToUnlock.tutorial:
            return(TutorialLevelStats);

            break;

        case LevelToUnlock.earthLevel:
            return(EarthLevelStats);

            break;

        case LevelToUnlock.airLevel:
            return(AirLevelStats);

            break;

        case LevelToUnlock.fireLevel:
            return(FireLevelStats);

            break;

        case LevelToUnlock.iceLevel:
            return(WaterLevelStats);
        }
        return(null);
    }
Ejemplo n.º 2
0
 public void testingSomething(LevelToUnlock myLevel)
 {
     GameManager.LoadLevel (myLevel);
 }
Ejemplo n.º 3
0
 public static void LoadLevel(LevelToUnlock level)      //run this when we load a level through the UI
 {
     curLevel = loadedGame.GetStats(level);
 }
Ejemplo n.º 4
0
 public void testingSomething(LevelToUnlock myLevel)
 {
     GameManager.LoadLevel(myLevel);
 }