From 9316c3da402e112c2c8ca587b0ff2bd473906655 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 12 Jul 2021 18:38:28 +0900 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=9C=9F=E3=82=B3=E3=83=BC=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E5=90=91=E3=81=8D=E3=83=A9=E3=83=B3=E3=83=80=E3=83=A0?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs index 988f9609..ce1ab17d 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs @@ -64,6 +64,7 @@ public class Corn : MonoBehaviour private void Start() { rigidbody.MovePosition(new Vector2(Random.value * 2 - 1, Random.value * 2 - 1)); + rigidbody.SetRotation(Random.value * 360); // コーンが飛んでいく this.ObserveEveryValueChanged(x => x.rigidbody.velocity.magnitude)