Exemplo n.º 1
0
    private void Rotate(Vector2Int direction)
    {
        var rotation = DirectionUtil.DirectionToRotation(direction);

        _spriteRenderer.transform.rotation = Quaternion.Euler(0, 0, rotation);
    }