예제 #1
0
 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);
     }
 }
예제 #2
0
 private void Awake()
 {
     _instance = this;
 }