Пример #1
0
        internal Game(IList<Player> players, IList<CardCode> supplies)
        {
            _players.AddRange(players);

            SupplyMan = new SuppliesManager(this, supplies);
            TurnMan = new TurnManager(this, true);
        }
Пример #2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
    }
Пример #3
0
 public PlayContext(Game game, Turn turn, SuppliesManager suppliesManager)
 {
     _game = game;
     Turn = turn;
 }
Пример #4
0
 private void Awake()
 {
     current = this;
     DontDestroyOnLoad(this);
 }