예제 #1
0
    public void NewGameOnClick()
    {
        CampementData.Instance.soldats.Add(new Soldat((int)TypeCombattant.nomTypeCombattant.Assassin));
        CampementData.Instance.soldats.Add(new Soldat((int)TypeCombattant.nomTypeCombattant.Eclaireur));
        CampementData.Instance.soldats.Add(new Soldat((int)TypeCombattant.nomTypeCombattant.Guerrier));
        CampementData.Instance.soldats.Add(new Soldat((int)TypeCombattant.nomTypeCombattant.Sniper));

        GenerationMissionSurvivant.GenerateMission();
        GenerationMissionExploration.GenerateMission();
        GenerationMissionSurvivant.GenerateMission();
        GenerationMissionSurvivant.GenerateMission();
        GenerationMissionExploration.GenerateMission();

        SceneManager.LoadScene("Campement", LoadSceneMode.Single);
    }
예제 #2
0
    public void FinMission()
    {
        CampementData.Instance.missionsDisponible.RemoveAt(CampementData.Instance.missionsDisponible.IndexOf(HUDDetailMission.Mission));
        int random = Random.Range(0, 2);

        switch (random)
        {
        case 0:
            GenerationMissionDefense.GenerateMission();
            break;

        case 1:
            GenerationMissionExploration.GenerateMission();
            break;

        case 2:
            GenerationMissionSurvivant.GenerateMission();
            break;
        }

        SceneManager.LoadScene("Campement", LoadSceneMode.Single);
    }