示例#1
0
    public void LoadPlayer(PlayerHolder player, PlayerStatsUI statsUI)
    {
        foreach (CardInstance c in player.cardsDownMelee)
        {
            Settings.SetParentForCard(c.cardViz.gameObject.transform, downGridMelee.value.transform);
        }

        foreach (CardInstance c in player.cardsDownRanged)
        {
            Settings.SetParentForCard(c.cardViz.gameObject.transform, downGridRanged.value.transform);
        }

        foreach (CardInstance c in player.handCards)
        {
            Settings.SetParentForCard(c.cardViz.gameObject.transform, handGrid.value.transform);
        }

        foreach (ResourceHolder c in player.resourcesList)
        {
            Settings.SetParentForCard(c.cardObject.gameObject.transform, resourcesGrid.value.transform);
        }

        player.playerStatsUI = statsUI;
        player.LoadPlayerOnStatsUI();
    }
示例#2
0
 public override void Execute(PlayerHolder player)
 {
     if (player.currentMaxResources < 10)
     {
         player.currentMaxResources++;
         player.currentResources = player.currentMaxResources;
         player.LoadPlayerOnStatsUI();
     }
 }