public void init(List<CardModel> playerCards, List<CardModel> opponentCards) { this.playerCards = playerCards; this.opponentCards = opponentCards; cardCanvasHelper = GameObject.Find(Constants.cardCanvas).GetComponent<CardCanvasHelperView>(); canvas = GameObject.Find("Canvas").gameObject.GetComponent<Canvas>(); }
internal void init(RaycastModel rm) { raycastModel = rm; pointerCurve = transform.Find("PointerCurve").gameObject; pointerCurve.SetActive(false); pointerSpline = pointerCurve.GetComponent<BezierSpline>(); cardCanvasHelper = GameObject.Find(Constants.cardCanvas).GetComponent<CardCanvasHelperView>(); }
protected override void Start() { base.Start(); cardCanvasHelper = GameObject.Find(Constants.cardCanvas).GetComponent<CardCanvasHelperView>(); }