Page 396 - MDP2022-3
P. 396

public  void  interpret()
                    {
                            background.SetActive(true);
                            text[card].SetActive(true);
                            button.SetActive(false);
                            button1.SetActive(true);
                    }
            public  void  Uninterpret()
                    {
                            background.SetActive(false);
                            text[card].SetActive(false);
                            button2.SetActive(true);
                            button3.SetActive(true);
                            button1.SetActive(false);
                    }
                    public  void  restart()
                    {
                            SceneManager.LoadScene("Main");
                    }


                    public  void  Exit()
                    {
                            Application.Quit();
                    }





             private  void  OnTriggerEnter(Collider  other)
                     {
                             for(int  i  =  0;  i<22;  i++)
                             {
                                     if  (other.name  ==  cards[i].name&&!GameManager.instance.grab)
                                     {
                                             sockets[i].SetActive(true);
                                             card.SetActive(false);
                                             GameManager.instance.socket  =  true;
                                     }
                             }
                     }
   391   392   393   394   395   396   397   398   399   400   401