Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (SceneManager.GetActiveScene().name == "Title")
        {
            Destroy(gameObject);
        }
        if (maingame)
        {
            return;
        }

        movetheballl = GameObject.Find("MoveTheBall");
        script       = movetheballl.GetComponent <movetheballautomatic>();
        if (script.pauseflag == false)
        {
            if (timer > 100 || gameoverflag)
            {
                gameoverflag = true;
            }
            else
            {
                timer += Time.fixedDeltaTime;
            }
        }
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     script = gameobj.GetComponent <movetheballautomatic>();       //scriptしゅとく
     text.SetActive(false);
     tweetbtn.SetActive(false);
     replay.SetActive(false);
     next.SetActive(false);
 }
Esempio n. 3
0
 // Update is called once per frame
 void Update()
 {
     movetheballl = GameObject.Find("MoveTheBall");
     script       = movetheballl.GetComponent <movetheballautomatic>();
     if (script.pauseflag == false)
     {
         if (timer > 100)
         {
             gameoverflag = true;
         }
         else
         {
             timer += Time.fixedDeltaTime;
         }
     }
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     script      = gameobj.GetComponent <movetheballautomatic>();
     audioSource = this.GetComponent <AudioSource> ();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     script = gameobj.GetComponent <movetheballautomatic>();
 }