private void ApplyBoundsBehavior(BoundsBehviour behavior, Vector2 constrainedPosition) { if (behavior == BoundsBehviour.Kill) { //LevelManager.Instance.KillPlayer(); return; } transform.position = constrainedPosition; }