// Update is called once per frame void Update() { touchScript = GameObject.Find("TouchManager").GetComponent <Touch>(); boardText.text = "" + (Operate - touchScript.touchNum); //Operate_kawaruの中身を元々の移動回数でリセット Operate_kawaru = Operate; //元々の移動回数からtouchNumを引いた残り移動回数をOperate_kawaruに代入 Operate_kawaru -= touchScript.touchNum; script.CheckBubble(); bubblenum = script.GetBubble(); //泡の回数が0になったらクリア if (bubblenum == 0) { ClearCanvas.SetActive(true); } //残り移動回数が0ならゲームオーバー else if (Operate_kawaru == 0) { RetryPanelMakeScript.SetGameOverFlag(); } else { Operate_kawaru = Operate; } operate = Operate - touchScript.touchNum; }
// Update is called once per frame void Update() { int BubbleNum = script.GetBubble(); if (BubbleNum == 0 && flag == false) { Panel.SetActive(true); HowToEND.SetActive(true); flag = true; } }