// Use this for initialization void Start() { theTextbox = FindObjectOfType <EndlessTextBoxManager> (); fader = FindObjectOfType <EndlessSceneFader> (); endlessPlayer = FindObjectOfType <EndlessRunnerPlayer> (); align = FindObjectOfType <AlignmentCtrl> (); sfx = FindObjectOfType <SfxCtrl> (); hasActivated = false; }
// Use this for initialization void Start() { cover = GameObject.Find("Cover").GetComponent <SpriteRenderer>(); endlessPlayer = GameObject.Find("Player").GetComponent <EndlessRunnerPlayer> (); player = GameObject.Find("Player"); // crosshairSpawnLoc = player.transform.FindChild ("crosshairLoc"); textBoxManager = FindObjectOfType <EndlessTextBoxManager> (); cover.color = Color.black; offBlack = Color.black; offBlack.a = .8f; // crossHairSpawned = false; if (NextKey == null) { NextKey = GameObject.Find("NextKey").GetComponent <Text>(); } }