void GoGauge() { Vector2 pos = transform.position; //現在位置をposに代入 if (!gaugeController.GetGauge()) { //移動計算式 pos += teleportation * gaugeController.GetTime() * Time.deltaTime; gaugeController.GetResetTime(); if (hit) { Item.Outitem(); } } transform.position = pos; //現在の位置にteleportationの移動距離を加算 //if (test.gameObject.tag == "DeathZone"&&Item.getitem()) { Item.Outitem(); } }