public void OnclickItem() { if (!GameObject.FindGameObjectWithTag("PANEL")) { ChrarterPanel chrarter = Instantiate(chararcterPrefab, transform.parent.parent).GetComponent <ChrarterPanel>(); } else { PanelManager game = GameObject.FindGameObjectWithTag("PANEL").GetComponent <PanelManager>(); game.Close(); ChrarterPanel chrarter = Instantiate(chararcterPrefab, transform.parent.parent).GetComponent <ChrarterPanel>(); } }
public void OnclickRightBT() { Close(); ChrarterPanel chrarterPanel = Instantiate(charPrefab, transform.parent).GetComponent <ChrarterPanel>(); }