DarkHydra
DarkHydra
CC#
Created by DarkHydra on 8/12/2023 in #help
❔ An Error I can't figure out
using UnityEngine; using UnityEngine.UI; public class Ball_Controller : MonoBehaviour { private Rigidbody2D rb; public Text leaderboardLabel; public int score = 0; public GameObject ball; // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody2D>(); rb.velocity = new Vector2 (3f, 3f); ball = GameObject.Find("Ball"); } private void OnCollisionEnter2D(Collision other) { if (other.gameObject.CompareTag("Paddle")) { score++; } } There's an error with the public text variable. It says that "the type or namespace "Text" could not be found" Although I have been following a tutorial
7 replies
CC#
Created by DarkHydra on 9/13/2022 in #help
2D Scrolling Background in Unity
Hello fellow Programmers, I am a new programmer that is self-taught, would anyone be able to help me with the implementation of a scrolling background.
3 replies