// Use this for initialization void Start() { haveLoggedValue = true; slider = gameObject.GetComponent <Slider>(); ballGod = Object.FindObjectOfType <BallGod>(); displayLastScore = Object.FindObjectOfType <DisplayLastScore>(); }
// Use this for initialization void Start() { ballGod = Object.FindObjectOfType <BallGod>(); //Debug.Log("past score was " + ballGod.getOldScore()); text = gameObject.GetComponent <Text>(); /* * if (ballGod == null) { * // do nothing * } * else if (ballGod.getOldScore() != 0) { * text.text = "Finish! Score: " + ballGod.getOldScore(); * } */ }
// Use this for initialization void Start() { ballGod = Object.FindObjectOfType <BallGod>(); }
// Use this for initialization void Start() { ballGod = Object.FindObjectOfType <BallGod>(); text = gameObject.GetComponent <Text>(); text.text = ballGod.GetScore().ToString(); }
// Use this for initialization void Start() { slider = gameObject.GetComponent <Slider>(); slider.value = PlayerPrefsManager.GetBallPopperTimeLimit(); ballGod = Object.FindObjectOfType <BallGod>(); }
// Use this for initialization void Start() { ballGod = Object.FindObjectOfType <BallGod>(); toggle = gameObject.GetComponent <Toggle>(); }
// Use this for initialization void Start() { //Debug.Log(menuCanvas); ballGod = Object.FindObjectOfType <BallGod>(); Debug.Log(ballGod); }