예제 #1
0
 private void Preview()
 {
     panelController.CancelPreview();
     IntroObject = Instantiate(towerPrefab.GetComponent <TowerBase>().IntroPrefab, transform.parent);
     IntroObject.GetComponent <RectTransform>().anchoredPosition = transform.position.x > 0.0f ? -IntroOffset : IntroOffset;
     icon.SetActive(false);
     checkMark.SetActive(true);
     btn.onClick.RemoveListener(Preview);
     btn.onClick.AddListener(Confirm);
 }