Forum

wtf why my code does not work?
Poster
Body
Level:
6
6
Posts:
3,159
3,159
Posted 5 years ago
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"))
}
}