Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

NullReferenceException in C#

$
0
0
Hi, guys! I'm starting to develop in Unity and I came across this error and I don't know how to solve it:
"NullReferenceException: Object reference not set to an instance of an object
BulletSetup.Start () (at Assets/Scripts/BulletSetup.cs:54)"


BulletSetup.cs
Code (CSharp):
  1. public class BulletSetup : MonoBehaviour {
  2.  
  3.     private float xVelocity;
  4.     private float yVelocity;
  5.     private float shotAngle;
  6.  
  7.     private float xWindVelocity;
  8.     private float yWindVelocity;
  9.     private float...
NullReferenceException in C#

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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