03-16-2016 01:37 PM
using UnityEngine;
using System.Collections;
public class CamMoving : MonoBehaviour {
void Update ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Camera.main.ScreenToWorldPoint(new Vector3 (moveHorizontal, moveVertical, 0));
}
}
03-16-2016 02:10 PM
03-16-2016 03:56 PM
09-09-2016 07:12 AM