上传UI信息和替换,修正战斗页面的UI处理
This commit is contained in:
@@ -45,14 +45,14 @@ namespace TcgEngine.Client
|
||||
return;
|
||||
|
||||
CardbackData cb = CardbackData.Get(player.cardback);
|
||||
string targetDeckPath = cb != null && !string.IsNullOrEmpty(cb.deck_path) ? cb.deck_path : "Cardbacks/deck_silver.png";
|
||||
string targetDeckPath = cb != null && !string.IsNullOrEmpty(cb.deck_path) ? cb.deck_path : "Cardbacks/Load_card_group.png";
|
||||
if (deck_render != null && (deck_render.sprite == null || prev_deck_path != targetDeckPath))
|
||||
{
|
||||
Sprite sprite = SpriteLoader.Get()?.LoadSprite(targetDeckPath);
|
||||
if (sprite != null)
|
||||
{
|
||||
deck_render.sprite = sprite;
|
||||
deck_render.gameObject.transform.localScale = Vector3.one * 0.5f;
|
||||
deck_render.gameObject.transform.localScale = Vector3.one;
|
||||
prev_deck_path = targetDeckPath;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user