// 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; } } }
// Use this for initialization void Start() { script = gameobj.GetComponent <movetheball>(); //scriptしゅとく text.SetActive(false); tweetbtn.SetActive(false); replay.SetActive(false); next.SetActive(false); }
// Use this for initialization void Start() { script = gameobj.GetComponent <movetheball>(); }
// Use this for initialization void Start() { script = gameobj.GetComponent <movetheball>(); //unitychanの中にあるUnityChanScriptを取得して変数に格納する }