Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Null reference error.

$
0
0
using UnityEngine; using System.Collections; using UnityEngine.UI; using System.Collections.Generic; using System; public class TextController : MonoBehaviour { private bool bStart = true; private string instructions = "You have the following commands at your disposal:\n" + "*\tFirst Verse, Second Verse\n" + "*\tFirst Chorus, Second Chorus, Third Chorus\n" + "*\tFirst Bridge, Second Bridge"; private Text text; private LyricList lineList = new LyricList(); private InputField inputField; private string newState; // Use this for initialization void Start () { // Get the text child object from the Canvas text = gameObject.GetComponent (); // Get the input field child object from the Canvas inputField = gameObject.GetComponentInChildren (); //CreateAssetMenuAttribute on Lyric List lineList.CreateList (); text.text = ("Please reassemble the song lyrics!\n" + instructions + "\n\nStart guessing to begin!\n\n"); }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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