From 9d8712520aa9ed1279b764d9512e5ddb28e21f50 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 9 Jul 2021 14:02:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=B3=E3=81=ABKO=E3=82=A2?= =?UTF-8?q?=E3=83=8B=E3=83=A1=E3=82=92=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scenes/Cooking/Prefabs/corn.prefab | 2 ++ popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Prefabs/corn.prefab b/popcorn/Assets/MyGame/Scenes/Cooking/Prefabs/corn.prefab index b4463198..4dadd602 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Prefabs/corn.prefab +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Prefabs/corn.prefab @@ -74,6 +74,8 @@ MonoBehaviour: effectBurnt: {fileID: 3984349228049242719, guid: 02298b5aac4434a4c81aec58ad2caa9d, type: 3} animator: {fileID: 5972257590091015193} + spilledCornAnimationPrefab: {fileID: 2449901118440757730, guid: 7e7fbf241bd7f461fb46363ff0c6be3e, + type: 3} --- !u!50 &7195010600253370228 Rigidbody2D: serializedVersion: 4 diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs index 729ad60f..4d6dc563 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/Corn.cs @@ -26,6 +26,7 @@ public class Corn : MonoBehaviour [SerializeField] private Sprite cornBurntSprite; [SerializeField] private GameObject effectBurnt; [SerializeField] private Animator animator; + [SerializeField] private GameObject spilledCornAnimationPrefab; private Rigidbody2D rigidbody; private float cornPopTime;