Zimri
Zimri
CC#
Created by Zimri on 5/10/2023 in #help
❔ journal system?
https://www.youtube.com/watch?v=OWvicJkXv94 is there an easier way of implementing a journal system like this, where collecting it will add it to your pause menu?
2 replies
CC#
Created by Zimri on 5/3/2023 in #help
❔ how to reference a variable in another script?
10 replies
CC#
Created by Zimri on 5/2/2023 in #help
❔ How would i connect a variable between 2 scripts
i have a script for score in my game for collectibles, and i want a mechanic similar to coins from mario kart, where the more you collect the faster you become, so how would i reference this variable in my other code to multiply the movement speed by, here are my scripts score: using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class Score : MonoBehaviour { public TMP_Text myScoreText; private int score; // Start is called before the first frame update void Start() { score = 0; myScoreText.text = "Score: " + score; } private void OnTriggerEnter2D(Collider2D Coin) { Debug.Log("Trigger entered!"); if (Coin.tag == "Collectible") { score += 1; Destroy(Coin.gameObject); myScoreText.text = "Score: " + score; } } } Movement
2 replies
CC#
Created by Zimri on 4/29/2023 in #help
❔ Lighting help
11 replies