Esempio n. 1
0
    //TODO
    //instead of the current style of menu do this
    //-

    void Awake()
    {
        p1Plane    = Player.PlaneType.GRIFFON;
        p2Plane    = Player.PlaneType.WASP;
        p1Input    = PlayerInput.InputType.KEYBOARD;
        p2Input    = PlayerInput.InputType.GAMEPAD1;
        difficulty = GameDifficulty.DifficultyLevel.NORMAL;
        stage      = LevelLoader.Stage.DEBUG;
        SetVariablesToTextFields();
        planes       = GetPlanes();
        inputs       = GetInputs();
        stages       = GetStages();
        difficulties = GetDifficulties();
    }
Esempio n. 2
0
 public void InitScoreGUI(ScoreSystem scoreSystem, LevelLoader.Stage currentStage)
 {
     scoreGUI.Initialize(scoreSystem, currentStage);
 }
Esempio n. 3
0
 public void Initialize(ScoreSystem scoreSystem, LevelLoader.Stage currentStage)
 {
     this.scoreSystem  = scoreSystem;
     this.currentStage = currentStage;
 }
Esempio n. 4
0
 public void CycleStage()
 {
     stage          = NextFromArray <LevelLoader.Stage>(stage, stages);
     stageText.text = stage.ToString();
 }
Esempio n. 5
0
 void LoadCurrentStageName()
 {
     currentStage = LevelLoader.ParseStage(PlayerPrefManager.GetString("game_currentstage"));
     Debug.Log(currentStage.ToString());
 }