예제 #1
0
파일: Player.cs 프로젝트: Markus-Brand/LD47
    private void MoveBy(Vector2Int delta)
    {
        if (CanMoveTo(GetPosition() + delta, delta))
        {
            MoveTo(GetPosition() + delta);
        }

        transform.rotation = delta.AsZRotation(-90);
    }