// Update is called once per frame void Update() { //スコアを更新 int score = CalcScore(); scoreText.text = "Score:" + score + "m"; //ライフパネルを更新 lifePanel.UpdateLite(nejiko.Lite()); }