public override void OnSetType(CardViz cardViz) { base.OnSetType(cardViz); // If it is a creature we need to show its stats. cardViz.statsHolder.SetActive(true); }
public override void OnSetType(CardViz cardViz) { base.OnSetType(cardViz); // If it is a spell we do not need to show its stats. cardViz.statsHolder.SetActive(false); }
public override void OnSetType(CardViz cardViz) { base.OnSetType(cardViz); // If it is a resource card we don't need to show its stats. cardViz.statsHolder.SetActive(false); cardViz.resourceHolder.SetActive(false); }
// We can add some additional logic here: ///public typelogic logic; public virtual void OnSetType(CardViz cardViz) { // Set text related to card type. var typeElement = Settings.GetResourcesManager().typeElement; var type = cardViz.GetProperties(typeElement); type.text.text = typeName; }
public bool wasUsed; // Need to additional check during block phase. private void Start() { cardViz = GetComponent <CardViz>(); }