ミス表示クラス追加
This commit is contained in:
parent
be0c9e188f
commit
f478b682bb
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class CornMissEffect : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject burntSprite;
|
||||
[SerializeField] private GameObject spilledSprite;
|
||||
|
||||
public void ChangeSkin(CornCondition condition)
|
||||
{
|
||||
switch (condition)
|
||||
{
|
||||
case CornCondition.Seed:
|
||||
break;
|
||||
case CornCondition.Simple:
|
||||
break;
|
||||
case CornCondition.Burnt:
|
||||
burntSprite.SetActive(true);
|
||||
spilledSprite.SetActive(false);
|
||||
break;
|
||||
case CornCondition.Spilled:
|
||||
burntSprite.SetActive(false);
|
||||
spilledSprite.SetActive(true);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(condition), condition, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c1b1cd164f414fcfa2fd0963f985ef0f
|
||||
timeCreated: 1626323615
|
||||
Loading…
Reference in New Issue