예제 #1
0
파일: PlayGrid.cs 프로젝트: Grhyll/LD45
    public void OnNewGridCard(Card card, GridSpot spot)
    {
        GridCardUI newCardUI = Instantiate(gridCardUIModel.gameObject, gridCardUIModel.transform.parent).GetComponent <GridCardUI>();

        newCardUI.gameObject.SetActive(true);
        newCardUI.Init(card, spot);
        newCardUI.transform.localPosition = spot.transform.localPosition;
        spot.OnEntityEnters(newCardUI);
    }