Beispiel #1
0
 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>();
     }
 }
Beispiel #2
0
 public void OnclickRightBT()
 {
     Close();
     ChrarterPanel chrarterPanel = Instantiate(charPrefab, transform.parent).GetComponent <ChrarterPanel>();
 }