Here’s what I have:
using UnityEngine;
using System.Collections;
public class walking.player ; MonoBehaviour
{
// this is a walking animation
// Use this for initialization
void Start () {
}
// Update is called once per frame
//thanks for the tip bro
//anyways, these is the place where you press the keys in order to walk and stuff
void Update () {
if(Input.GetKeyDown(KeyCode.UpArrow))
{}
if(Input.GetKeyDown(KeyCode.DownArrow))
{}
if(Input.GetKeyDown(KeyCode.LeftArrow))
{}
if(Input.GetKeyDown(KeyCode.RightArrow))
{}
}
}
}
By the way, the format is C#. I will be doing the code myself, I just need help with this little bit.