// Use this for initialization void Start() { knight = FindObjectOfType <KnightControlScript> (); rig = gameOverText.GetComponent <Rigidbody2D> (); button = FindObjectOfType <pausedScript> (); }
// Use this for initialization void Start() { Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeRight = true; Screen.autorotateToPortrait = false; Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.AutoRotation; OnUnPause(); //PlayerPrefs.SetInt ("default", 0); //controls.SetActive (true); //controls2.SetActive (false); if (PlayerPrefs.GetInt("default") == 0) { controls.SetActive(true); controls2.SetActive(false); } else if (PlayerPrefs.GetInt("default") == 1) { controls2.SetActive(true); controls.SetActive(false); } controlPanel.SetActive(false); knight = FindObjectOfType <KnightControlScript> (); wingKnight = FindObjectOfType <wingKnightController> (); }
// Use this for initialization void Start() { knight = FindObjectOfType <KnightControlScript> (); }
// Use this for initialization void Start() { knight = FindObjectOfType <KnightControlScript> (); gameOverScreen.SetActive(false); }