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

Object Refernce not set to an instance of an object error.

$
0
0
Hello. I am extreamly new to coding, but as far as I can tell this script should work.
Code (CSharp):
  1.    
  2.     public class HeartsGUI2 : MonoBehaviour {
  3.        
  4.        
  5.         public GameObject Player22;
  6.        
  7.         public GUITexture image2;
  8.         public Texture2D Image_1;
  9.         public Texture2D Image_2;
  10.         public Texture2D Image_3;
  11.         public Texture2D Image_4;
  12.         public Texture2D Image_5;
  13.         public Texture2D Image_6;
  14.         public int hp = 5;
  15.        
  16.         public...
Object Refernce not set to an instance of an object error.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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