Page 381 - MDP2022-3
P. 381

BoomImage[index].color  =  new  Color(1,  1,  1,  0);
                            }
                            for  (int  index  =  0;  index  <  boom;  index++)
                            {
                                    BoomImage[index].color  =  new  Color(1,  1,  1,  1);
                            }
                    }
                    public  void  gameOver()
                    {
                            Player  playerlogic  =  Player.GetComponent<Player>();
                            Player.SetActive(false);


                            gameOverSet.SetActive(true);

                    }
                    public  void  callExplosion(Vector3  pos,string  type)                  //사망시  폭발구현
                    {
                            GameObject  explosion  =  objectManager.MakeObj("Explosion");
                            Explosion  explosionLogic  =  explosion.GetComponent<Explosion>();
                            explosion.transform.position  =  pos;
                            explosionLogic.StartExplosion(type);
                    }
                    public  void  RetryGame()
                    {
                            SceneManager.LoadScene(0);
                    }

            }
   376   377   378   379   380   381   382   383   384   385   386