void OnTriggerEnter2D(Collider2D other) { if (other.name == "Character") { levelmanager.RespawnAll(); } }
public void respawn() { levelmanager.RespawnAll(); life = 50; initBubble(); anim.SetBool("isDying", false); enableControl = true; }
void OnTriggerEnter2D(Collider2D other) { if (other.name == "Character") { levelmanager.RespawnAll(); } }
public void respawn() { levelmanager.RespawnAll(); life = 50; initBubble(); anim.SetBool("isDying", false); enableControl = true; }