Inheritance: UnityEngine.MonoBehaviour
Exemple #1
0
 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>();
 }
Exemple #2
0
        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>();
 }