none
It says there is a mistake on a curly bracket. What can I do? RRS feed

  • Question

  • Ok, I'm making a game in unity.  Here's my code so far, how can I fix it so it doesn't say its wrong? It really annoys me!


    using UnityEngine;

    public class PlayerMovement : MonoBehaviour
    {
        public Rigidbody rb;
        
        // Start is called before the first frame update
        void Start()
        {
            Debug.Log("Game Started");
            //rb.AddForce(0, 200, 500);
        }

        // Update is called once per frame
        void Update()
        {
            rb.AddForce(0, 0, 200 * Time.deltaTime);
        }

    Monday, May 27, 2019 9:09 PM

Answers

All replies