예제 #1
0
        public override void OnSetType(CardViz cardViz)
        {
            base.OnSetType(cardViz);

            // If it is a creature we need to show its stats.
            cardViz.statsHolder.SetActive(true);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        // 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;
        }
예제 #5
0
        public bool wasUsed; // Need to additional check during block phase.

        private void Start()
        {
            cardViz = GetComponent <CardViz>();
        }