Quantcast
Channel: Latest Questions by Himani_123
Viewing all articles
Browse latest Browse all 54

Walker boys tutorial... NullPointerException error

$
0
0
Im seeing the Walker boys tutorial, Im on the Project #2, where you make a ship that destroys asteroids... and there's a part where the bullet must call a function from other object... (here's the video http://vimeo.com/19463502) I do everything that is here but I get this error: "NullReferenceException: Object reference not set to an instance of an object scriptBullet.OnTriggerEnter (UnityEngine.Collider other) (at Assets/scriptBullet.js:39) and that line of code is : sceneManager.transform.GetComponent(scriptsceneManager).AddScore(); **scriptsceneManager.js** var gameTime : float = 60; static var score : int = 0; function Update () { print("score : " +score); } public function AddScore() { score +=1; }

Viewing all articles
Browse latest Browse all 54

Trending Articles



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