Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Player_jump

$
0
0
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.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>