Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

"error CS1525: Unexpected symbol `end-of-file' " I've tried everything....

$
0
0
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PLayer : MonoBehaviour { private float jumpPressure; private float minJump; private float maxJumpPressure; private bool onGround; private Rigidbody rbody; // Use this for initialization void Start () { onGround = true; jumpPressure = 0f; minJump = 2f; maxJumpPressure = 10f; } // Update is called once per frame void Update () { if(onGround) { { //Hold to make player jump higher// if(Input.GetButton("Jump")) { if(jumpPressure < maxJumpPressure) { jumpPressure += Time.deltaTime*10f; } else { jumpPressure = maxJumpPressure; } print(jumpPressure); } } } //Not Holding (tapping) Jump Button (Will make you jump at normal height (lower)) else { if(jumpPressure > 0f) { jumpPressure = jumpPressure + minJump; }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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