From faa680d335a005073e17132e3c6a53ce903a96ee Mon Sep 17 00:00:00 2001 From: kimura Date: Wed, 21 Jul 2021 17:29:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9F=E3=82=B9=E6=BC=94=E5=87=BA=E5=91=A8?= =?UTF-8?q?=E3=82=8A=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/Cooking/Scripts/CornManager.cs | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs index 6949cfb9..dd7fe019 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CornManager.cs @@ -18,11 +18,6 @@ public class CornManager : MonoBehaviour [SerializeField] private Transform cornSpawnTarget; [SerializeField] private Corn cornPrefab; [SerializeField] private GameObject spilledCornAnimationPrefab; - [SerializeField] private GameObject missCornAnimationPrefab; - [SerializeField] private CornMissMeter cornMissMeter; - [SerializeField] private RectTransform missTextSpawnTransform; - private static readonly Bounds missEffectBounds = new Bounds(new Vector3(0f, 1.7f), new Vector3(10f, 7f)); - [SerializeField] private int cornSpawnCount = 20; [SerializeField] private int maxFailedCornCount = 10; [SerializeField, ReadOnly] private float baseGrowSpeed = 1f; @@ -124,7 +119,6 @@ public class CornManager : MonoBehaviour { cornGrowSpeed.Value = 0f; missCount.Value = 0; - cornMissMeter.ResetMeter(); isCompleted = false; compositeDisposable.Clear(); cornConditions.Clear(); @@ -264,27 +258,6 @@ public class CornManager : MonoBehaviour this.CallWaitForSeconds(1.5f, () => Destroy(animation)); } - private void SpawnMissAnimation(CornCondition condition) - { - // ミス表示 - var position = new Vector2(Random.Range(missEffectBounds.min.x, missEffectBounds.max.x), Random.Range(missEffectBounds.min.y, missEffectBounds.max.y)); - var animation = Instantiate(missCornAnimationPrefab, position, Quaternion.identity, missTextSpawnTransform); - animation.GetComponent().ChangeSkin(condition); - - this.CallWaitForSeconds(.75f, () => - { - this.CallLerp(.2f, f => - { - animation.transform.position = Vector3.Lerp(position, cornMissMeter.transform.position, f.EaseInCubic()); - }, () => - { - VibrationManager.Instance.PlayVibrationOnce(); - cornMissMeter.SetMeter((float)missCount.Value/maxFailedCornCount); - Destroy(animation); - }); - }); - } - private void SetResult(CornResult resultValue) { cornGrowSpeed.Value = 0f;