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

Static member "LevelManager.Score" cannot be accessed with an instance reference?

$
0
0
1st Script: [LevelManager.cs] public class LevelManager : MonoBehaviour { bool HUDActive; public static int Score; public bool HasEnded; 2nd Script: [Powerups.cs] public void OnMouseUp () { if (activate) { powerups.MyTimer += 50; GameObject scrs = GameObject.Find("1"); LevelManager points = scrs.GetComponent(); points.Score -= 10;

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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