public CardHealthText GetCardHealthText() { if (this.cardHealthText == null) { this.cardHealthText = GetComponentInChildren <CardHealthText>(); } return(this.cardHealthText); }
public CardHealthText GetCardHealth() { if (this.healthTM == null) { this.healthTM = GetComponent <CardHealthText>(); // this.healthTM.fontSharedMaterial = Resources.Load<Material>(fontPath + fontHealth); } return(this.healthTM); }