コード例 #1
0
        public virtual void OnSetType(CardViz viz)
        {
            Element           t    = Settings.GetResourcesManager().typeElement;
            CardVizProperties type = viz.GetProperty(t);

            type.text.text = typeName;
        }
コード例 #2
0
        void CreateStartingCards()
        {
            ResourcesManager rm = Settings.GetResourcesManager();

            for (int i = 0; i < currentPlayer.startingCards.Length; i++)
            {
                Debug.Log(i);
                GameObject obj = Instantiate(cardPrefab) as GameObject;
                CardViz    v   = obj.GetComponent <CardViz>();
                v.LoadCard(rm.GetCardInstance(currentPlayer.startingCards[i]));
                CardInstance inst = obj.GetComponent <CardInstance>();
                inst.currentLogic = currentPlayer.handLogic;
                Settings.SetParentForCard(obj.transform, currentPlayer.handGrid.value);
            }
        }
コード例 #3
0
 void Start()
 {
     viz = GetComponent <CardViz>();
 }
コード例 #4
0
        public override void OnSetType(CardViz viz)
        {
            base.OnSetType(viz);

            viz.statsHolder.SetActive(true);
        }