public void Setup(CardGameSM gameController) { _playerController = gameController.PlayerController; _playerView.Setup(_playerController.Players[0], gameController.TargetController); //TODO simulate that player is 0 index, in this case. Fix in the future CardPlayer playerToSetup = _playerController.Players[0]; if (playerToSetup.Hand.Count > 0) { SetupPlayerCards(playerToSetup); } }
private void Awake() { StateMachine = GetComponent <CardGameSM>(); }