![]() Spawner.Start () (at Assets/spawner.cs:26)Ĭan someone please explain the meaning of this error and how to resolve this? I am new to unity so i might be making a wrong interpretation of this. ![]() NullReferenceException: Object reference not set to an instance of an object On line p = playerScript.GetComponent() I am getting the following error: PlayerScript = GameObject.Find("Player") ![]() It has a script called spawner.cs and has the following code: using System.Collections unity gamemanager instance not set to an instance of an object. ![]() I want to use the "destroy", "minus", and "ball" variables in another game object called "spawner". To create a prefab, either drag and drop your list item object into your assets folder. Start is called before the first frame update So, i have a game object called "Player", and it has a script player.cs which is something like this: using System.Collections ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |