// 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();
         * }
         */
    }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     ballGod = Object.FindObjectOfType <BallGod>();
 }
Exemple #4
0
 // 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>();
 }
Exemple #6
0
 // Use this for initialization
 void Start()
 {
     ballGod = Object.FindObjectOfType <BallGod>();
     toggle  = gameObject.GetComponent <Toggle>();
 }
Exemple #7
0
 // Use this for initialization
 void Start()
 {
     //Debug.Log(menuCanvas);
     ballGod = Object.FindObjectOfType <BallGod>();
     Debug.Log(ballGod);
 }