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(); }
private void OnDestroy() { LifesSystem.GetInstance().LoseLife(); GameManager.GetInsatnce().RespawnLaBabale(); //Debug.Log("LaBabal Destoy"); }