using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Zoom : MonoBehaviour {

    public float speed = 200;

    void Update () {
        var scroll = Input.GetAxis("Mouse ScrollWheel");
        var pos = transform.localPosition;
        pos.y -= scroll * speed * Time.deltaTime;
        pos.z += scroll * 2 * speed * Time.deltaTime;
        transform.localPosition = pos;
	}
}
