The current player's script looks like this.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Automove: MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.Translate(0.04f, 0, 0);
}
}
I added a script that jumps when I press the space key. What should I do?
Help me.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Automove: MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.Translate(0.04f, 0, 0);
}
}
I added a script that jumps when I press the space key. What should I do?
Help me.