void Update() { for (int i = 0; i < PracticalPlayers; i++) { if (targetCursor[i] == null) { continue; } if (useInitialAngle) { cannon.SetTargetWithAngle(targetCursor[i].transform.position, initialFireAngle, i); } else { cannon.SetTargetWithSpeed(targetCursor[i].transform.position, initialFireSpeed, useLowAngle, i); } if (targetCursor[i].FireFlg) { if (timer.TimerFinishflg) { gameController.AddPlayer(cannon.FireHuman(i)); targetCursor[i].FireFlg = false; _slider_Background.gameObject.SetActive(false); _slider_Fillarea.gameObject.SetActive(false); DeleteCursor(i); } } // デバッグ用射出 if (DebugModeGame.GetProperty().m_debugMode&& DebugModeGame.GetProperty().m_Injection > i) { if (Input.GetButtonDown("Injection_" + (i + 1).ToString())) { gameController.AddPlayer(cannon.FireHuman(i)); targetCursor[i].FireFlg = false; DeleteCursor(i); } } } //timeOfFlightText.text = Mathf.Clamp(cannon.lastShotTimeOfFlight - (Time.time - cannon.lastShotTime), 0, float.MaxValue).ToString("F3"); }