コード例 #1
0
 private void Awake()
 {
     if (_gameData == null)
     {
         _gameData = GameData.Load();
     }
     if (_dispatcher == null)
     {
         _dispatcher = EventsDispatcher.Load();
     }
     if (_gameParameters == null)
     {
         _gameParameters = GameParameters.Load();
     }
 }
コード例 #2
0
 private void Awake()
 {
     _gameController = GetComponent <GameController>();
     _dispatcher     = EventsDispatcher.Load();
     _gameParameters = GameParameters.Load();
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: ycarowr/CardGameHexBoard
 public Player(PlayerId id, GameParameters gameParameters, IDispatcher dispatcher)
 {
     Id             = id;
     Dispatcher     = dispatcher;
     GameParameters = gameParameters;
 }