コード例 #1
0
    private readonly float _pixelSize;    //world units

    public TeleportableBehaviour(Transform transform, int imageWidth, int imageHeight)
    {
        _transform = transform;

        _screenSize = SceneHelper.WorldUnitsInCamera;
        _assetSize  = SceneHelper.GetAssetInWorldUnits(imageWidth, imageHeight);
        _pixelSize  = SceneHelper.GetPixelInWorldUnits();
    }