예제 #1
0
    void IPointerClickHandler.OnPointerClick(PointerEventData eventData)
    {
        // 에너지 사용 체크
        if (!watched && !_energyManager.UseEnergy())
        {
            return;
        }

        watched = true;

        if (detailView != null)
        {
            // show
            var view = GameObject.Instantiate(detailView);
            Utilities.SetUIParentFit(GameObject.FindWithTag("RootCanvas"), view);
            view.transform.position += new Vector3(0, 0, -5);
        }
    }