Exemplo n.º 1
0
    private void ApplyBoundsBehavior(BoundsBehviour behavior, Vector2 constrainedPosition)
    {
        if (behavior == BoundsBehviour.Kill)
        {
            //LevelManager.Instance.KillPlayer();
            return;
        }

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

        transform.position = constrainedPosition;
    }