Files
Darklings-FightingGame/Assets/_Project/Scripts/SimulationScripts/SimulationManager.cs
2022-12-22 00:03:51 +02:00

20 lines
594 B
C#

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