Reorganize Assets/Battle
This commit is contained in:
parent
3e0004d4cb
commit
abf17d8d14
20 changed files with 16 additions and 0 deletions
32
Assets/Battle/UI/CardUI.cs
Normal file
32
Assets/Battle/UI/CardUI.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class CardUI : MonoBehaviour
|
||||
{
|
||||
public Text nameText;
|
||||
public Text typeText;
|
||||
public Text costText;
|
||||
public Image artImage;
|
||||
public Text effectText;
|
||||
|
||||
public void Init(BaseCard card) {
|
||||
this.nameText.text = card.GetDisplayName();
|
||||
this.typeText.text = card.GetDisplayType();
|
||||
this.costText.text = "" + card.GetCost();
|
||||
this.effectText.text = card.GetEffectText();
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue