protected override void Awake()
        {
            base.Awake();
            wacg    = FindObjectOfType <WACardGenerator>();
            tooltip = FindObjectOfType <TooltipManager>();

            if (cardPreset != null)
            {
                ModelData = wacg.CreateCardFromSO(cardPreset);
            }
        }
示例#2
0
 protected override void Start()
 {
     base.Start();
     cg = FindObjectOfType <WACardGenerator>();
 }
 protected void Awake()
 {
     cg = FindObjectOfType <WACardGenerator>();
 }