예제 #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 <movetheball>();
        if (script.pauseflag == false)
        {
            if (timer > 30 || gameoverflag)
            {
                gameoverflag = true;
            }
            else
            {
                timer += Time.fixedDeltaTime;
            }
        }
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     script = gameobj.GetComponent <movetheball>();       //scriptしゅとく
     text.SetActive(false);
     tweetbtn.SetActive(false);
     replay.SetActive(false);
     next.SetActive(false);
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     script = gameobj.GetComponent <movetheball>();
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     script = gameobj.GetComponent <movetheball>();        //unitychanの中にあるUnityChanScriptを取得して変数に格納する
 }