using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float movespeed
// Start is called before the first frame update
void Start()
{
moveSpeed = f1
}
// Update is called once per frame
void Update()
{
trasnsform.Translate(moveSpeed*Imput.getAxis("Vertical")*Time.deltaTime,0f,moveSpeed*Imput.getAxis("Horizontal"))
}
}
Forum
wtf why my code does not work?
Poster
Body
Posted 5 years ago