facing issue in GameControl.cs of FlappyBird (Unity Tutorials)
Hi Fellows, I'm facing issue in making Flappy Bird game as per Unity Tutorials. The screenshot of red lined text is attached along with it's reason. Guide me, how to fix it?
i'm making this game exactly in the version the tutorial guy made this . It's unity 5.5.0f3
Answer by alankemp · Feb 21, 2017 at 01:33 PM
Your GameControl script is a MonoBehaviour that is attached to a GameObject.
SetActive(..) is a function you can call on GameObjects.
You can get the GameObject the MonoBehaviour belongs to, and call SetActive on it like this:
gameOverText.gameObject.SetActive(true);
Your answer
Follow this Question
Related Questions
ERROR CS0649 help please guys 0 Answers
I have error in my game saving script (C#). 1 Answer
PlayerPrefs mad?! 0 Answers
Player should turn in the direction the player is running. (2D Game) 0 Answers
Problem with Score/Highscore script 0 Answers