void Update() { // クリックしたとき if (oulInput.GetTouchState() == oulInput.TouchState.Began) { // 座標マウスに合わす Vector3 pos = Input.mousePosition; pos -= new Vector3(Screen.width / 2, Screen.height / 2, 0); ClickEffect.GetComponent <PanelAnim>().Action2D(pos /*, new Vector3(0, 0, 0)*/); } // EFMonsterSummon.GetComponent <AlphaWave>().SelfUpdate(); // HPへらす if (Input.GetKeyDown(KeyCode.Alpha1)) { //myHP = 1; //myHPNumber.SetNumber(myHP); //cpuHP = 1; //cpuHPNumber.SetNumber(cpuHP); myLP.SetLP(1); cpuLP.SetLP(1); } //// 補間処理 //lerpMyHP = Mathf.Lerp(lerpMyHP, (float)myHP, 0.5f); //lerpCPUHP = Mathf.Lerp(lerpCPUHP, (float)cpuHP, 0.5f); //// ゲージ処理 //var rate = lerpMyHP / MaxHP; //myScoreGauge.fillAmount = rate; //// ゲージ処理 //rate = lerpCPUHP / MaxHP; //cpuScoreGauge.fillAmount = rate; // 制限時間処理 if (!timerFlag) { return; } if (timer > 0) { if ((timer -= Time.deltaTime) < 0) { timer = 0; } } // 時間UI更新 UpdateLimitTimeText(); }
// Update is called once per frame public void SetLife() { if (int.TryParse(inputField.text, out NewLP)) { LPtext.SetLP(NewLP); } else { Debug.Log("int.TryParse(inputField.text, out NewLP) is failed!"); } InitInputField(); }