コード例 #1
0
    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);
        }
    }
コード例 #2
0
 private void Awake()
 {
     StateMachine = GetComponent <CardGameSM>();
 }