void Awake() { _instance = this; cardSpots = new List <CardSpot>(); if (cardViewUI == null) { cardViewUI = FindObjectOfType <CardViewUI>(); } if (hand == null) { hand = FindObjectOfType <Hand>(); } }
public void init() { ui = new CardViewUI(); ui.ctrl = this; ui.init(); }