Cyber/Assets/Scripts/PlayerController.cs
2017-05-07 22:44:35 +03:00

14 lines
373 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public Character Character;
void FixedUpdate() {
Vector3 Move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
Move = transform.TransformDirection(Move);
Character.Move(Move);
}
}