Exemplo n.º 1
0
 public Player(Game game, Game.User user)
 {
     Game = game;
     User = user;
     _hand = new List<Card>();
     _battlefield = new List<Card>();
     _resourceController = new ResourceController(this);
 }
Exemplo n.º 2
0
 private void Awake()
 {
     // TODO: Random
     var first = PhotonNetwork.isMasterClient ? Game.User.You : Game.User.Opponent;
     Game = new Game(this, first);
     Game.Subscribe(GuiController);
     Game.Subscribe(Player);
     Game.Subscribe(Opponent);
 }