예제 #1
0
 private void ShowDisplayStatus(UnitEntity unit)
 {
     _panel.SetCharacter(unit);
     _panel.gameObject.SetActive(true);
     _panel.UpdateBoxCardCount(_cardContext.GetPlayerBoxCards(unit.owner.Entity).Length);
     _panel.UpdateDeckCardCount(_cardContext.GetPlayerDeckCards(unit.owner.Entity).Length);
     _panel.UpdatePlayingTurn(unit.owner.Entity.isPlaying);
 }
예제 #2
0
    protected override void Execute(List <CardEntity> entities)
    {
        var deckCardCount = _context.GetPlayerDeckCards(_status.ShowingCharacter.owner.Entity)
                            .Length;
        var boxCardCount = _context.GetPlayerBoxCards(_status.ShowingCharacter.owner.Entity)
                           .Length;

        _status.UpdateDeckCardCount(deckCardCount);
        _status.UpdateBoxCardCount(boxCardCount);
    }
    protected override void Execute(List <CardEntity> entities)
    {
        var deckCardCount = _context.GetPlayerDeckCards(_gameContext.localEntity)
                            .Length;
        var resouceHandCount = _context.GetPlayerResourceCards(_gameContext.localEntity)
                               .Length;
        var boxCardCount = _context.GetPlayerBoxCards(_gameContext.localEntity)
                           .Length;

        //UnityEngine.Debug.Log("Card > "+(deckCardCount+resouceHandCount)+","+boxCardCount);
        _status.UpdateDeckCardCount(deckCardCount + resouceHandCount);
        _status.UpdateBoxCardCount(boxCardCount);
    }