// Update is called once per frame void Update() { if (playerHero && playerHero.IsDead()) { PartyManager.it.LoadInn(); } }