// Use this for initialization void Start() { player = FindObjectOfType <Movement>(); ball = FindObjectOfType <Ballscript>(); if (textfile != null) { textLines = (textfile.text.Split('\n')); } if (endAtLine == 0) { endAtLine = textLines.Length - 1; } if (isActive) { EnableTextBox(); } else { DisableTextBox(); } }
// Use this for initialization void Start() { SoccerBall = FindObjectOfType <Ballscript>(); test = true; }