public GameManager(List <Character> chars, int size, Action <TurnResults> sr, Action <string> sm, Action <List <Character> > actualizeCharacters, bool host, string ipAdress, string port) { Map = new Map(chars, size); ShowResults = sr; ShowMessage = sm; _actualizeCharacters = actualizeCharacters; StateOfGame = StatesOfGame.PlayerDeclaringTurn; if (host) { _gc = new GameHost(ipAdress, port, this); } else { _gc = new GameClient(ipAdress, port, this); } }
private void Awake() { _instance = this; }