public void Respawn(Transform respawnPos, ShootDirection direction) { dead = false; characterAnimator.SetBool("IsDead", dead); transform.position = new Vector3(respawnPos.position.x, respawnPos.position.y, transform.position.z); currentShootDirection = direction; charaFlower.SetCurrentGlobalTarget(currentShootDirection == ShootDirection.Left ? leftShootPosition : rightShootPosition, currentShootDirection); lifeSystem.ResetLife(); }