using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterController2D : MonoBehavior {
// Use this for initialization
void Start();
// Update is called once per frame
void Update () {
Vector3 horizontal= new Vector3(Input.GetAxis(Horizontal), false, false);
new.positon = transform.positon + horizontal * Time.deltaTime;
}
}
↧