Files
Darklings-FightingGame/Assets/_Project/Scripts/SimulationScripts/SimulationManager.cs
2023-01-20 02:25:40 +02:00

19 lines
677 B
C#

using SharedGame;
using System.Collections.Generic;
using UnityGGPO;
public class SimulationManager : GameManager
{
public override void StartLocalGame()
{
StartGame(new LocalRunner(new GameSimulation(GameplayManager.Instance.GetPlayerStats(), GameplayManager.Instance.GetAssistStats())));
}
public override void StartGGPOGame(IPerfUpdate perfPanel, IList<Connections> connections, int playerIndex)
{
var game = new GGPORunner("darklings", new GameSimulation(GameplayManager.Instance.GetPlayerStats(), GameplayManager.Instance.GetAssistStats()), perfPanel);
game.Init(connections, playerIndex);
StartGame(game);
}
}