示例#1
0
 public void RespawnLaBabale()
 {
     if (LifesSystem.GetInstance().GetLife() > 0)
     {
         Instantiate(LaBabale, new Vector3(0, -3, 0), Quaternion.identity);
     }
     else
     {
         Invoke("BackToMenu", 1.5f);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
     children = GetAllChildren();
 }
示例#3
0
 private void OnDestroy()
 {
     LifesSystem.GetInstance().LoseLife();
     GameManager.GetInsatnce().RespawnLaBabale();
     //Debug.Log("LaBabal Destoy");
 }