Пример #1
0
    private void ApplyBoundsBehavior(BoundsBehviour behavior, Vector2 constrainedPosition)
    {
        if (behavior == BoundsBehviour.Kill)
        {
            //LevelManager.Instance.KillPlayer();
            return;
        }

        transform.position = constrainedPosition;
    }
Пример #2
0
    private void ApplyBoundsBehavior(BoundsBehviour behavior, Vector2 constrainedPosition)
    {
        if (behavior == BoundsBehviour.Kill)
        {
            //LevelManager.Instance.KillPlayer();
            return;
        }

        transform.position = constrainedPosition;
    }