protected override void OnInitialize(IGameContext context) { IntroductionState = new IntroductionGameState(this, GetConfiguration().TutorialEnabled); TutorialState = new TutorialGameState(this); PlayState = new PlayGameState(this); ResultState = new ResultGameState(this); }
protected override void OnInitialize(IGameContext context) { IntroductionState = new IntroductionGameState(this, GetConfiguration().TutorialEnabled); TutorialState = new TutorialGameState(this); PlayState = new PlayGameState(this); ResultState = new ResultGameState(this); //Difficulty is decided like this: 0 <= easy <= 0.333 < medium <= 0.666 < hard <=1 var difficulty = GetConfiguration().Difficulty; //Adjust parameters accordingly: //- max lives: 2 on hard, 5 on very easy m_MaxLives = 2 + Mathf.RoundToInt(3 * (1 - difficulty)); }