// Update is called once per frame void Update() { //Startでできなかった初期値設定 if (constrain == 0) { constrain = transform.GetChild(0).GetChild(0).GetComponent <GridLayoutGroup>().constraintCount; allPage = transform.childCount; for (int i = 0; i < allPage; i++) { allButton += transform.GetChild(i).GetChild(0).childCount; } CheckPanelButton(); return; } if (controller.IsFade()) { return; } StageSelect(); PageFeed(); StageSelectEnter(); //Debug.Log(panelButton); //Debug.Log(constrain); //Debug.Log(index); //Debug.Log(stage); //Debug.Log(creditFlag); }
//移動 void Move() { if (controller.IsFade()) { return; } Vector3 moveVector = Vector3.zero; Rigidbody rigidbody = GetComponent <Rigidbody>(); ChangeDirection(); moveVector = moveSpeed * controller.HorizontalMove(); Vector3 velocity = new Vector3(rigidbody.velocity.x, 0, 0); rigidbody.AddForce(moveForceMultiplier * (moveVector - velocity)); }
void Update() { if (controller.IsFade()) { return; } Pause(); ChangeMirror(); //鏡の種類を切り替え SetMirror(); //鏡を設置 }