public override void StartMultiplayerGame(string scene)
 {
     if (base.Name == "PeaceGameMode")
     {
         ScoreboardFactory.Register("PeaceGameMode", new PeaceGameModeScoreData());
         OpenPeaceMission(scene);
         return;
     }
 }
Пример #2
0
    public GameRunner(BlockMover mover, ScoreboardFactory scoreboardFactory, AudioPlayer audio)
    {
        this.scoreboardFactory = scoreboardFactory;
        this.mover             = mover;
        this.audio             = audio;

        leftShifter  = new InputRepeater(0.25, 0.02, mover.MoveLeft);
        rightShifter = new InputRepeater(0.25, 0.02, mover.MoveRight);
        spinShifter  = new InputRepeater(0.5, 0.1, mover.RotateAntiClockwise);
    }