Пример #1
0
        public void OnNewGame()
        {
            LiveSession.SetPlayerData(new PlayerData());
            LiveSession.SetCaveData(NameGenerator.GenerateCaveName(), 3, new [] { Mineral.White });
            LiveSession.SetCurrentMission(new MapMission(3));

            GetComponent <SceneTransition>().DelayedSceneChange("CaveTutorial");
        }
Пример #2
0
        public static CaveMission GenerateCaveMission()
        {
            var caveMission = new CaveMission
            {
                CaveName     = NameGenerator.GenerateCaveName(),
                CaveSize     = (CaveSize)Random.Range(0, 3),
                CaveMinerals = GenerateMinerals()
            };

            caveMission.CaveRooms = MathHelper.SelectFromRange(GameConfiguration.CaveSizeRooms[caveMission.CaveSize]);
            caveMission.Mission   = GenerateMission(caveMission);

            return(caveMission);
        }
Пример #3
0
 static LiveSession()
 {
     SetCaveData(NameGenerator.GenerateCaveName(), 5, new[] { Mineral.Blue, Mineral.White });
     SetPlayerData(new PlayerData());
     SetCurrentMission(new MapMission(0));
 }