public void SetStealPopUp(ItemGenPoint curGenPoint) { stealPopUp.CurGenPoint = curGenPoint; Vector3 screenPoint = Camera.main.WorldToScreenPoint(curGenPoint.transform.position + new Vector3(0, 2, 0)); stealPopUp.transform.position = screenPoint; stealPopUp.gameObject.SetActive(true); }
public void Init(int itemGenPointIdx) { genPoint = MapDataManager.Instance.ItemGenPoints[itemGenPointIdx]; MapDataManager.Instance.ItemGenPoints[itemGenPointIdx].SetItem(this); }